Sha256: 931e5097cb11d08923c4832b3a6b74b586ecc32aeb7b045ff1782fa6d613a05a

Contents?: true

Size: 1.89 KB

Versions: 4

Compression:

Stored size: 1.89 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 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
symbiont-0.1.7 specs/support/test_steps/action_steps_links.rb
symbiont-0.1.6 specs/support/test_steps/action_steps_links.rb
symbiont-0.1.5 specs/support/test_steps/action_steps_links.rb
symbiont-0.1.4 specs/support/test_steps/action_steps_links.rb