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:
parent
683c99f299
commit
0f2b4d0aac
9 changed files with 64 additions and 0 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue