Created
May 15, 2014 14:50
-
-
Save freeslugs/0c4c94dc0fdb72523c80 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'watir' | |
require 'rubygems' | |
require 'rspec' | |
require 'http' | |
require 'tempfile' | |
# HEY! Run this using "rspec test.rb" in terminal | |
RSpec.configure do |config| | |
# Use color in STDOUT | |
config.color_enabled = true | |
# Use color not only in STDOUT but also in pagers and files | |
config.tty = true | |
# Use the specified formatter | |
config.formatter = :documentation # :progress, :html, :textmate | |
end | |
switches = [] | |
# if you want a proxy, select the second one | |
# switches = ['--proxy-server=200.68.9.92:8080'] # 110.211.42.253:9000 | |
# Pick which browser you'd like. e.g. :chrome , :phantomjs | |
browser = Watir::Browser.new :phantomjs, :switches => switches | |
describe 'get url or something' do | |
it 'go to url' do | |
url = 'http://www.google.com' | |
browser.goto url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment