Module: Selenium::WebDriver::Firefox::FirefoxJsHelpers
- Included in:
- Driver
- Defined in:
- lib/firefox_js_helpers.rb
Overview
js helpers
Instance Method Summary collapse
- #es6_const_call(es6:, const:) ⇒ Object
- #es6_function_call(es6:, func:, args:) ⇒ Object
- #execute_script_in_chrome_context ⇒ Object
Instance Method Details
#es6_const_call(es6:, const:) ⇒ Object
15 16 17 |
# File 'lib/firefox_js_helpers.rb', line 15 def es6_const_call(es6:, const:) es6_import(es6) << "return m.#{const}" end |
#es6_function_call(es6:, func:, args:) ⇒ Object
19 20 21 |
# File 'lib/firefox_js_helpers.rb', line 19 def es6_function_call(es6:, func:, args:) es6_import(es6) << "return m.#{es6}.#{func}('#{args}')" end |
#execute_script_in_chrome_context ⇒ Object
11 12 13 |
# File 'lib/firefox_js_helpers.rb', line 11 def execute_script_in_chrome_context(...) in_chrome_context { execute_script(...) } end |