Skip to content

Instantly share code, notes, and snippets.

@VirtuosiMedia
Created February 18, 2012 20:15
Show Gist options
  • Save VirtuosiMedia/1860903 to your computer and use it in GitHub Desktop.
Save VirtuosiMedia/1860903 to your computer and use it in GitHub Desktop.
Take 2
require 'spec_helper'
require "selenium/client"
require "selenium-webdriver"
describe "Pricing Page Exists" do
attr_reader :selenium_driver
alias :page :selenium_driver
before(:all) do
@verification_errors = []
@selenium_driver = Selenium::Client::Driver.new \
:host => "107.21.142.157",
:port => 4444,
:browser => "*iehta",
:url => "http://staging.youeye.com/",
:timeout_in_second => 60
end
after(:all) do
@selenium_driver.stop
end
before(:each) do
@selenium_driver.start_new_browser_session
end
after(:each) do
@selenium_driver.close_current_browser_session
@verification_errors.should == []
end
it "test_pricing _page _exists" do page.open "/"
page.click "link=Pricing"
page.wait_for_page_to_load "30000"
("http://staging.youeye.com/pricing").should == page.get_location
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment