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)
| 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. |
no test coverage detected