MCPcopy Index your code
hub / github.com/seleniumbase/SeleniumBase / execute_script

Method execute_script

seleniumbase/fixtures/base_case.py:3504–3509  ·  view source on GitHub ↗
(self, script, *args, **kwargs)

Source from the content-addressed store, hash-verified

3502 return None
3503
3504 def execute_script(self, script, *args, **kwargs):
3505 self.__check_scope()
3506 if self.__is_cdp_swap_needed():
3507 return self.cdp.evaluate(script)
3508 self._check_browser()
3509 return self.driver.execute_script(script, *args, **kwargs)
3510
3511 def execute_cdp_cmd(self, script, *args, **kwargs):
3512 self.__check_scope()

Callers 15

openMethod · 0.95
clickMethod · 0.95
double_clickMethod · 0.95
context_clickMethod · 0.95
press_keysMethod · 0.95
focusMethod · 0.95
get_originMethod · 0.95
get_user_agentMethod · 0.95
get_locale_codeMethod · 0.95
go_backMethod · 0.95
go_forwardMethod · 0.95
set_attributeMethod · 0.95

Calls 4

__check_scopeMethod · 0.95
__is_cdp_swap_neededMethod · 0.95
_check_browserMethod · 0.95
evaluateMethod · 0.45

Tested by

no test coverage detected