Sha256: a7cb786255eb18bc46b8498f1a12d379fd26d10649115cab9896f4abb6157e5e
Contents?: true
Size: 1.72 KB
Versions: 3
Compression:
Stored size: 1.72 KB
Contents
require File.expand_path(__FILE__ + '/../../spec_helper') describe "Window Selection" do it "selects and close popup windows" do page.open "http://localhost:4444/selenium-server/org/openqa/selenium/tests/html/test_select_window.html" page.click "popupPage", :wait_for => :popup, :window => "myPopupWindow", :select => true page.location.should =~ %r{/tests/html/test_select_window_popup.html} page.title.should =~ /Select Window Popup/ page.all_window_names.size.should eql(2) page.all_window_names.include?("myPopupWindow").should be_true page.close page.select_window "null" page.location.should =~ %r{/tests/html/test_select_window.html} page.click "popupPage", :wait_for => :popup, :window => "myPopupWindow" page.select_window "title=Select Window Popup" page.location.should =~ %r{/tests/html/test_select_window_popup.html} page.close page.select_window "null" end it "select an anonymous window (one that isn't assigned to a variable)" do page.open "http://localhost:4444/selenium-server/org/openqa/selenium/tests/html/test_select_window.html" page.click "popupAnonymous", :wait_for => :popup, :window => "anonymouspopup", :select => true page.location.should =~ %r{/tests/html/test_select_window_popup.html} page.click "closePage" page.select_window "null" end it "handles an onclick close handler" do page.open "http://localhost:4444/selenium-server/org/openqa/selenium/tests/html/test_select_window.html" page.click "popupAnonymous", :wait_for => :popup, :window => "anonymouspopup", :select => true page.location.should =~ %r{/tests/html/test_select_window_popup.html} page.click "closePage2" page.select_window "null" end end
Version data entries
3 entries across 3 versions & 1 rubygems