mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 12:15:09 +00:00

Note that this does nothing to "fix" how element references are created. We continue to return the element ID because, otherwise, all other element WebDriver endpoints would break. On the bright side, we avoid several IPC round trips now that we perform the entire 'find' operation in the WebContent process; and we are able to work directly on DOM nodes.
13 lines
610 B
Text
13 lines
610 B
Text
#include <LibWeb/WebDriver/Response.h>
|
|
|
|
endpoint WebDriverClient {
|
|
close_session() => ()
|
|
set_is_webdriver_active(bool active) =|
|
|
navigate_to(JsonValue payload) => (Web::WebDriver::Response response)
|
|
get_current_url() => (Web::WebDriver::Response response)
|
|
get_window_rect() => (Web::WebDriver::Response response)
|
|
set_window_rect(JsonValue payload) => (Web::WebDriver::Response response)
|
|
maximize_window() => (Web::WebDriver::Response response)
|
|
minimize_window() => (Web::WebDriver::Response response)
|
|
find_element(JsonValue payload) => (Web::WebDriver::Response response)
|
|
}
|