Class: WebDriverScriptAdapter::ExecEvalScriptAdapter2
- Inherits:
-
DumbDelegator
- Object
- DumbDelegator
- WebDriverScriptAdapter::ExecEvalScriptAdapter2
- Defined in:
- lib/webdriver_script_adapter/exec_eval_script_adapter.rb
Instance Method Summary collapse
Instance Method Details
#execute_script_fixed(script, *args) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/webdriver_script_adapter/exec_eval_script_adapter.rb', line 31 def execute_script_fixed(script, *args) page = __getobj__ page = page.driver if page.respond_to?("driver") page = page.browser if page.respond_to?("browser") and not page.browser.is_a?(::Symbol) page.execute_script(script, *args) end |