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

Method _execute

py/selenium/webdriver/remote/shadowroot.py:141–154  ·  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 dictionary obj

(self, command, params=None)

Source from the content-addressed store, hash-verified

139
140 # Private Methods
141 def _execute(self, command, params=None):
142 """Executes a command against the underlying HTML element.
143
144 Args:
145 command: The name of the command to _execute as a string.
146 params: A dictionary of named parameters to send with the command.
147
148 Returns:
149 The command's JSON response loaded into a dictionary object.
150 """
151 if not params:
152 params = {}
153 params["shadowId"] = self._id
154 return self.session.execute(command, params)

Callers 2

find_elementMethod · 0.95
find_elementsMethod · 0.95

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected