mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07: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
|
@ -495,15 +495,6 @@ void ConnectionFromClient::scroll_element_into_view(i32 element_id)
|
|||
element->scroll_into_view(options);
|
||||
}
|
||||
|
||||
Messages::WebContentServer::GetElementAttributeResponse ConnectionFromClient::get_element_attribute(i32 element_id, String const& name)
|
||||
{
|
||||
auto element = find_element_by_id(element_id);
|
||||
if (!element.has_value())
|
||||
return Optional<String> {};
|
||||
|
||||
return { element->get_attribute(name) };
|
||||
}
|
||||
|
||||
Messages::WebContentServer::GetElementPropertyResponse ConnectionFromClient::get_element_property(i32 element_id, String const& name)
|
||||
{
|
||||
auto element = find_element_by_id(element_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue