mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
There are a couple changes here from the existing Get All Cookies implementation. 1. Previously, WebDriver actually returned *all* cookies in the cookie jar. The spec dictates that we only return cookies that match the document's URL. Specifically, it calls out that we must run just the first step of RFC 6265 section 5.4 to perform domain matching. This change adds a special mode to our implementation of that section to skip the remaining steps. 2. We now fill in the SameSite cookie attribute when serializing the cookie to JSON (this was a trival FIXME that didn't get picked up when SameSite was implemented).
30 lines
2 KiB
Text
30 lines
2 KiB
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)
|
|
find_elements(JsonValue payload) => (Web::WebDriver::Response response)
|
|
find_element_from_element(JsonValue payload, String element_id) => (Web::WebDriver::Response response)
|
|
find_elements_from_element(JsonValue payload, String element_id) => (Web::WebDriver::Response response)
|
|
is_element_selected(String element_id) => (Web::WebDriver::Response response)
|
|
get_element_attribute(String element_id, String name) => (Web::WebDriver::Response response)
|
|
get_element_property(String element_id, String name) => (Web::WebDriver::Response response)
|
|
get_element_css_value(String element_id, String name) => (Web::WebDriver::Response response)
|
|
get_element_text(String element_id) => (Web::WebDriver::Response response)
|
|
get_element_tag_name(String element_id) => (Web::WebDriver::Response response)
|
|
get_element_rect(String element_id) => (Web::WebDriver::Response response)
|
|
is_element_enabled(String element_id) => (Web::WebDriver::Response response)
|
|
get_source() => (Web::WebDriver::Response response)
|
|
execute_script(JsonValue payload) => (Web::WebDriver::Response response)
|
|
execute_async_script(JsonValue payload) => (Web::WebDriver::Response response)
|
|
get_all_cookies() => (Web::WebDriver::Response response)
|
|
take_screenshot() => (Web::WebDriver::Response response)
|
|
take_element_screenshot(String element_id) => (Web::WebDriver::Response response)
|
|
}
|