Skip to content

Instantly share code, notes, and snippets.

@runako
runako / webgoat.rb
Created December 30, 2017 05:07
Selenium Example: Exercise WebGoat
require 'selenium-webdriver'
chromedriver_path = '/path/to/chromedriver'
Selenium::WebDriver::Chrome.driver_path = chromedriver_path
driver = Selenium::WebDriver.for :chrome
driver.navigate.to 'http://localhost:7070/WebGoat'
wait = Selenium::WebDriver::Wait.new(:timeout => 15)