1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

Browser+WebContent+WebDriver: Move Is Element Selected to WebContent

This commit is contained in:
Timothy Flynn 2022-11-10 08:15:39 -05:00 committed by Linus Groh
parent 560da56a1d
commit 04ea3992e9
16 changed files with 40 additions and 76 deletions

View file

@ -146,17 +146,6 @@ void WebDriverConnection::scroll_element_into_view(i32 element_id)
}
}
Messages::WebDriverSessionClient::IsElementSelectedResponse WebDriverConnection::is_element_selected(i32 element_id)
{
dbgln("WebDriverConnection: is_element_selected {}", element_id);
if (auto browser_window = m_browser_window.strong_ref()) {
auto& tab = browser_window->active_tab();
if (tab.webdriver_endpoints().on_is_element_selected)
return { tab.webdriver_endpoints().on_is_element_selected(element_id) };
}
return { false };
}
Messages::WebDriverSessionClient::GetElementAttributeResponse WebDriverConnection::get_element_attribute(i32 element_id, String const& name)
{
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: get_element_attribute");