mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
Browser+WebContent+WebDriver: Move Get Element Attribute to WebContent
In doing so, this also implements a FIXME to handle boolean attributes.
This commit is contained in:
parent
7b1f3b7253
commit
1bc94e135f
16 changed files with 37 additions and 67 deletions
|
@ -611,10 +611,6 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
|
|||
active_tab().view().scroll_element_into_view(element_id);
|
||||
};
|
||||
|
||||
new_tab.webdriver_endpoints().on_get_element_attribute = [this](i32 element_id, String const& name) {
|
||||
return active_tab().view().get_element_attribute(element_id, name);
|
||||
};
|
||||
|
||||
new_tab.webdriver_endpoints().on_get_element_property = [this](i32 element_id, String const& name) {
|
||||
return active_tab().view().get_element_property(element_id, name);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue