MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / __init__

Method __init__

py/selenium/webdriver/common/alert.py:47–53  ·  view source on GitHub ↗

Creates a new Alert. Args: driver: The WebDriver instance which performs user actions.

(self, driver)

Source from the content-addressed store, hash-verified

45 """
46
47 def __init__(self, driver) -> None:
48 """Creates a new Alert.
49
50 Args:
51 driver: The WebDriver instance which performs user actions.
52 """
53 self.driver = driver
54
55 @property
56 def text(self) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected