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" 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