Sha256: dedefd49695214968161d6ed111832285076455ea4426d653d17aa5d5b86af59

Contents?: true

Size: 856 Bytes

Versions: 1

Compression:

Stored size: 856 Bytes

Contents

require 'spec'

$:.unshift File.join(File.dirname(__FILE__), '..', '..')

require 'lib/selenium'
require 'test/selenium/home_page'
require 'test/selenium/download_page'

module Selenium
context 'basic operation with selenium' do
  context_setup do
    @browser = Selenium::SeleniumDriver.new("localhost", 4444, "*iexplore", "http://localhost:2000", 10000)
    @browser.start
  end
  
  setup do
    @browser.open('http://localhost:2000/index.html')
  end
  
  specify 'click through menus' do
#TEST START
    page = HomePage.new(@browser)
    page.download_link.click_wait
    page = DownloadPage.new(@browser)
    page.home_link.click_wait
    page = DirectoryListingPage.new(@browser)
    page.link_to_entry('index.txt').click_wait
    page = HomePage.new(@browser)
    page.license_link.click_wait
#TEST END
  end
end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Selenium-1.0.0 test/selenium/tc_basic_operation.rb