Sha256: 71f13199134cd2ba2f78edd9856f46d4eeb0ec216d97a186e85d62961ecf74c3

Contents?: true

Size: 806 Bytes

Versions: 3

Compression:

Stored size: 806 Bytes

Contents

require File.expand_path(__FILE__ + '/../../spec_helper')

describe "Backward Compatible API" do
  it "provides legacy driver methods" do
		page.open "http://localhost:4444/selenium-server/org/openqa/selenium/tests/html/test_click_page1.html"

    page.get_title.should eql("Click Page 1")
		page.get_text("link").index("Click here for next page").should_not be_nil

		links = page.get_all_links
		links.length.should > 3
		links[3].should eql("linkToAnchorOnThisPage")

		page.click "link"
		page.wait_for_page_to_load 5000
		page.get_location.should =~ %r"/selenium-server/org/openqa/selenium/tests/html/test_click_page2.html"

		page.click "previousPage"
		page.wait_for_page_to_load 5000
		page.get_location.should =~ %r"/selenium-server/org/openqa/selenium/tests/html/test_click_page1.html"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
browserstack-webdriver-2.40.1 spec/integration/selenium/client/api/backward_compatible_api_spec.rb
browserstack-webdriver-0.0.22 spec/integration/selenium/client/api/backward_compatible_api_spec.rb
browserstack-webdriver-0.0.1 spec/integration/selenium/client/api/backward_compatible_api_spec.rb