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.
- Args:
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.
- class selenium.webdriver.common.bidi.session.Session(conn)[source]¶
-
- status()[source]¶
The session.status command returns information about the remote end’s readiness.
Returns information about the remote end’s readiness to create new sessions and may include implementation-specific metadata.
- Returns:
Dictionary containing the ready state (bool), message (str) and metadata.