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

Method click

py/selenium/webdriver/remote/webelement.py:110–117  ·  view source on GitHub ↗

Clicks the element. Example: element = driver.find_element(By.ID, "foo") element.click()

(self)

Source from the content-addressed store, hash-verified

108 return self._execute(Command.GET_ELEMENT_TEXT)["value"]
109
110 def click(self) -> None:
111 """Clicks the element.
112
113 Example:
114 element = driver.find_element(By.ID, "foo")
115 element.click()
116 """
117 self._execute(Command.CLICK_ELEMENT)
118
119 def submit(self) -> None:
120 """Submits a form.

Callers

nothing calls this directly

Calls 1

_executeMethod · 0.95

Tested by

no test coverage detected