Method: Capybara::Session#execute_script

Defined in:
lib/capybara/session.rb

#execute_script(script, *args) ⇒ Object

Execute the given script, not returning a result. This is useful for scripts that return complex objects, such as jQuery statements. execute_script should be used over evaluate_script whenever possible.



563
564
565
566
# File 'lib/capybara/session.rb', line 563

def execute_script(script, *args)
  @touched = true
  driver.execute_script(script, *driver_args(args))
end