Seleniumのコード
ちょっと使いづらい
#! /bin/env ruby
require"selenium-webdriver"
#Firefox browser instantiation
driver = Selenium::WebDriver.for :firefox
#Loading the assertselenium URL
driver.navigate.to "http://www.example.com"
#Clicking on the Follow link present on the assertselenium home
FollowButton = driver.find_element(:link, "Follow")
FollowButton.click
#Asserting whether the registration success message is diaplyed
SuccessMessage = driver.find_element(:css, "p.message")
#Quitting the browser
driver.quit