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

Method get_pinned_scripts

py/selenium/webdriver/remote/webdriver.py:640–654  ·  view source on GitHub ↗

Return a list of all pinned scripts. .. deprecated:: Use ``driver.script.pin()`` instead. Example: `pinned_scripts = driver.get_pinned_scripts()`

(self)

Source from the content-addressed store, hash-verified

638 raise KeyError(f"No script with key: {script_key} existed in {self.pinned_scripts}") from None
639
640 def get_pinned_scripts(self) -> list[str]:
641 """Return a list of all pinned scripts.
642
643 .. deprecated::
644 Use ``driver.script.pin()`` instead.
645
646 Example:
647 `pinned_scripts = driver.get_pinned_scripts()`
648 """
649 warnings.warn(
650 "get_pinned_scripts is deprecated, use driver.script.pin() instead",
651 DeprecationWarning,
652 stacklevel=2,
653 )
654 return list(self.pinned_scripts)
655
656 def execute_script(self, script: str, *args) -> Any:
657 """Synchronously Executes JavaScript in the current window/frame.

Calls 1

warnMethod · 0.45