Alertview steps

Written by: | Posted on:

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
`

Image Image

Father, husband, software developer, musician and photographer.


Get to know what I'm up to

© 2020 Niklas Saers Contact Me