Skip to content

Instantly share code, notes, and snippets.

Then /^I should see a Result of (\d+)$/ do |result|
actual = query("textField marked:'Results'", :text)
actual[0].should == result
end
When /^I enter (\d+)$/ do |value|
value.each_char do |number|
macro %Q[I touch the "#{number}button" button]
end
macro 'I touch the "Enter" button'