selenium.webdriver.common.bidi.sessionΒΆ
Classes
|
|
|
Represents the configuration of the user prompt handler. |
Represents the behavior of the user prompt handler. |
- class selenium.webdriver.common.bidi.session.UserPromptHandlerType[source]ΒΆ
Represents the behavior of the user prompt handler.
- ACCEPT = 'accept'ΒΆ
- DISMISS = 'dismiss'ΒΆ
- IGNORE = 'ignore'ΒΆ
- VALID_TYPES = {'accept', 'dismiss', 'ignore'}ΒΆ
- class selenium.webdriver.common.bidi.session.UserPromptHandler(alert: str | None = None, before_unload: str | None = None, confirm: str | None = None, default: str | None = None, file: str | None = None, prompt: str | None = None)[source]ΒΆ
Represents the configuration of the user prompt handler.
Initialize UserPromptHandler.
Parameters:ΒΆ
alert: Handler type for alert prompts before_unload: Handler type for beforeUnload prompts confirm: Handler type for confirm prompts default: Default handler type for all prompts file: Handler type for file picker prompts prompt: Handler type for prompt dialogs
Raises:ΒΆ
ValueError: If any handler type is not valid