mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb+WebContent+WebDriver: Allow specifying multiple prompt handlers
WebDriver script authors may now provide either: * A user prompt handler configuration to be used for all prompt types. * A set of per-prompt-type user prompt handlers. This also paves the way for interaction with the beforeunload prompt, though we do not yet support that feature in LibWeb. See: https://github.com/w3c/webdriver/commit/43903d0
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#include <LibWeb/WebDriver/Capabilities.h>
|
||||
#include <LibWeb/WebDriver/Response.h>
|
||||
#include <LibWeb/WebDriver/UserPrompt.h>
|
||||
|
||||
endpoint WebDriverClient {
|
||||
close_session() => ()
|
||||
set_page_load_strategy(Web::WebDriver::PageLoadStrategy page_load_strategy) =|
|
||||
set_unhandled_prompt_behavior(Web::WebDriver::UnhandledPromptBehavior unhandled_prompt_behavior) =|
|
||||
set_user_prompt_handler(Web::WebDriver::UserPromptHandler user_prompt_handler) =|
|
||||
set_strict_file_interactability(bool strict_file_interactability) =|
|
||||
set_is_webdriver_active(bool active) =|
|
||||
get_timeouts() => (Web::WebDriver::Response response)
|
||||
|
||||
Reference in New Issue
Block a user