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

Method _execute

py/selenium/webdriver/remote/webelement.py:519–532  ·  view source on GitHub ↗

Executes a command against the underlying HTML element. Args: command: The name of the command to _execute as a string. params: A dictionary of named Parameters to send with the command. Returns: The command's JSON response loaded into a dictiona

(self, command, params=None)

Source from the content-addressed store, hash-verified

517
518 # Private Methods
519 def _execute(self, command, params=None):
520 """Executes a command against the underlying HTML element.
521
522 Args:
523 command: The name of the command to _execute as a string.
524 params: A dictionary of named Parameters to send with the command.
525
526 Returns:
527 The command's JSON response loaded into a dictionary object.
528 """
529 if not params:
530 params = {}
531 params["id"] = self._id
532 return self._parent.execute(command, params)
533
534 def find_element(self, by: str | By | RelativeBy = By.ID, value: str | None = None) -> WebElement:
535 """Find an element given a By strategy and locator.

Callers 15

tag_nameMethod · 0.95
textMethod · 0.95
clickMethod · 0.95
clearMethod · 0.95
get_propertyMethod · 0.95
get_dom_attributeMethod · 0.95
is_selectedMethod · 0.95
is_enabledMethod · 0.95
send_keysMethod · 0.95
shadow_rootMethod · 0.95
sizeMethod · 0.95

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected