#include #include #include #include #include #include #include #include #include endpoint WebDriverSessionClient { quit() =| get_url() => (URL url) set_url(URL url) =| get_title() => (String title) refresh() =| back() =| forward() =| get_window_rect() => (Gfx::IntRect rect) restore_window() =| set_window_size(Gfx::IntSize size) =| set_window_position(Gfx::IntPoint position) =| maximize_window() =| minimize_window() =| execute_script(String body, Vector json_arguments, Optional timeout, bool async) => (Web::WebDriver::ExecuteScriptResultType result_type, String json_result) get_all_cookies() => (Vector cookies) get_named_cookie(String name) => (Optional cookie) add_cookie(Web::Cookie::ParsedCookie cookie) =| update_cookie(Web::Cookie::Cookie cookie) =| get_document_element() => (Optional document_element_id) query_selector_all(i32 start_node_id, String selector) => (Optional> elements_ids) get_element_attribute(i32 element_id, String name) => (Optional atttibute) get_element_property(i32 element_id, String name) => (Optional property) get_active_documents_type() => (String type) get_computed_value_for_element(i32 element_id, String property_name) => (String computed_value) get_element_text(i32 element_id) => (String text) get_element_tag_name(i32 element_id) => (String tag_name) take_screenshot() => (Gfx::ShareableBitmap data) }