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 oath link on the object test page is clicked$/) do step %{on the object test page} @text_field = @page.link_object(id: "oath").click end When (/^the avengers link on the object test page is clicked by "([^"]*)"$/) do |locator| @page = SimpleObjectPage.new(@browser, true) @page.avengersCSS if locator == "css" @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.avengersTitle if locator == "title" @page.avengersText if locator == "text" @page.avengersHref if locator == "href" @page.avengersLink if locator == "link" @page.avengersLinkText if locator == "link_text" end Then (/^the database app link should exist$/) do @page.database_app_exists?.should == true @page.database_app?.should == true @web_object = @page.database_app_object @web_object.should exist end Then (/^the fake link should not exist$/) do @page.fake_link_exists?.should == false @web_object = @page.fake_link_object @web_object.should_not exist end Then (/^the database app link should be visible$/) do @page.database_app_visible?.should == true @page.database_app_?.should == true @web_object = @page.database_app_object @web_object.should be_visible 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