LibWeb+WebContent+WebDriver: Implement the Perform Actions endpoint

Similar to script execution, this spins the WebDriver process until the
action is complete (rather than spinning the WebContent process, which
we've seen result in deadlocks).
This commit is contained in:
Timothy Flynn 2024-09-29 09:40:17 -04:00 committed by Andreas Kling
commit 709deeb482
Notes: github-actions[bot] 2024-10-01 09:03:18 +00:00
10 changed files with 83 additions and 16 deletions

View file

@ -21,6 +21,7 @@ JsonObject web_element_reference_object(Web::DOM::Node const& element);
ErrorOr<JS::NonnullGCPtr<Web::DOM::Element>, WebDriver::Error> deserialize_web_element(JsonObject const&);
ByteString extract_web_element_reference(JsonObject const&);
bool represents_a_web_element(JsonValue const& value);
ErrorOr<JS::NonnullGCPtr<Web::DOM::Element>, Web::WebDriver::Error> get_web_element_origin(StringView origin);
ErrorOr<Web::DOM::Element*, Web::WebDriver::Error> get_known_connected_element(StringView element_id);
bool is_element_stale(Web::DOM::Node const& element);