Today I needed to work with an alertview, so here are two steps for pressing them:
`Given /^I press alert button (\d+)$/ do |index|
touch(“view:’UIAlertButton’”)[index]
end
Given /^I press alert button named “([^”]*)”$/ do |text|
touch(“view:’UIAlertButton’ label text:’#{text}’”)
end
`
Follow Me
Follow me online and join a conversation