Sha256: ec73d6e46fc97dcb767dfe3d8c875669f4a5488d3e4f1f4330de7e937235d5aa
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
When (/^the object test page link on the landing page is clicked$/) do step %{on the landing page} @page.simple_object_page end When (/^the avengers link on the object test page is clicked by "([^"]*)"$/) do |locator| @page = SimpleObjectPage.new(@browser, true) @page.avengersID if locator == "id" @page.avengersName if locator == "name" @page.avengersClass if locator == "class" @page.avengersXPath if locator == "xpath" @page.avengersIndex if locator == "index" @page.avengersText if locator == "text" @page.avengersHref if locator == "href" end Then (/^the database app link should exist$/) do @page.database_app_exists?.should == true @page.database_app?.should == true end Then (/^the fake link should not exist$/) do @page.fake_link_exists?.should == false end Then (/^the database app link should be visible$/) do @page.database_app_visible?.should == true @page.database_app_?.should == true end Then (/^the database app link should be a link object$/) do @object = @page.database_app_link @object.should be_instance_of Symbiont::WebObjects::Link end Then (/^the fake link should be a link object$/) do @object = @page.fake_link_object @object.should be_instance_of Symbiont::WebObjects::Link end Then (/^the text of the object test page link should be "([^"]*)"$/) do |text| @page.simple_object_page_text.should == text end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
symbiont-0.1.2 | specs/support/test_steps/action_steps_links.rb |
symbiont-0.1.1 | specs/support/test_steps/action_steps_links.rb |