1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

WebDriver+Browser: Implement GET /session/{id}/element/{id}/enabled

This commit is contained in:
Timothy Flynn 2022-11-03 13:31:08 -04:00 committed by Linus Groh
parent 683c99f299
commit 0f2b4d0aac
9 changed files with 64 additions and 0 deletions

View file

@ -635,6 +635,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
return active_tab().view().get_element_rect(element_id);
};
new_tab.webdriver_endpoints().on_is_element_enabled = [this](i32 element_id) {
return active_tab().view().is_element_enabled(element_id);
};
new_tab.webdriver_endpoints().on_serialize_source = [this]() {
return active_tab().view().serialize_source();
};