features/step_definitions/link_steps.rb in page-object-0.9.8 vs features/step_definitions/link_steps.rb in page-object-1.0
- old
+ new
@@ -28,5 +28,13 @@
end
Then(/^I should know it was "(.*?)"$/) do |href|
@href.should include href
end
+
+When(/^I get the link using the href success$/) do
+ @link = @page.link_element(:href => /succ.*html/)
+end
+
+Then(/^I should be able to click the link$/) do
+ @link.click
+end