Sha256: 9840640b994f394285e484832002a007a982bf99f5dad52d673e1f2c44bad16e
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' describe SeleniumFury::SeleniumWebDriver::PageValidator do it "should have a missing element exception" do class MissingElement < PageObject element :not_a_element1, {:id => "not a element1"} element :not_a_element2, {:id => "not a element2"} end launch_web_driver TEST_PAGE_URL expect { web_driver_validate(MissingElement) }.to raise_exception RuntimeError, "Found Missing Elements: [:not_a_element1, :not_a_element2]" end it "should validate elements" do launch_web_driver TEST_PAGE_URL validate(TestPage) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
selenium_fury-0.6.2 | spec/selenium_web_driver/page_validator_spec.rb |