mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Form the correct representation of a WebDriver element reference
We are currently returning a JSON object of the form: { "name": "element-6066-11e4-a52e-4f735466cecf", "value": "foo" } Instead, we are expected to return an object of the form: { "element-6066-11e4-a52e-4f735466cecf": "foo" }
This commit is contained in:
parent
7a15e3ee5c
commit
157d41bb0d
Notes:
github-actions[bot]
2024-09-27 08:47:55 +00:00
Author: https://github.com/trflynn89
Commit: 157d41bb0d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1546
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 10 additions and 11 deletions
|
@ -16,6 +16,7 @@ namespace Web::WebDriver {
|
|||
|
||||
ByteString get_or_create_a_web_element_reference(Web::DOM::Node const& element);
|
||||
JsonObject web_element_reference_object(Web::DOM::Node const& element);
|
||||
ByteString extract_web_element_reference(JsonObject const&);
|
||||
bool represents_a_web_element(JsonValue const& value);
|
||||
ErrorOr<Web::DOM::Element*, Web::WebDriver::Error> get_known_connected_element(StringView element_id);
|
||||
bool is_element_stale(Web::DOM::Node const& element);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue