selenium-webdriver Executing Javascript in the page Ruby


Example

require "selenium-webdriver"

driver = Selenium::WebDriver.for :chrome
driver.execute_script("alert('running javascript');")