mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
WebDriver: Implement GET /session/{id}/element/{id}/property/{name}
This commit is contained in:
parent
3db92885cd
commit
e87456e38f
7 changed files with 56 additions and 0 deletions
|
@ -155,4 +155,15 @@ Messages::WebDriverSessionClient::GetElementAttributeResponse WebDriverConnectio
|
|||
return { {} };
|
||||
}
|
||||
|
||||
Messages::WebDriverSessionClient::GetElementPropertyResponse WebDriverConnection::get_element_property(i32 element_id, String const& name)
|
||||
{
|
||||
dbgln("WebDriverConnection: get_element_property");
|
||||
if (auto browser_window = m_browser_window.strong_ref()) {
|
||||
auto& tab = browser_window->active_tab();
|
||||
if (tab.on_get_element_property)
|
||||
return { tab.on_get_element_property(element_id, name) };
|
||||
}
|
||||
return { {} };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue