cucumber - Entering Text into UISearchBar button calabash iOS testing -


i having bit of trouble getting my_first_steps.rb proceed further initial load test "given on welcome screen". have sought in depth examples of inputting text uisearchbartextfield , have unfortunately fell short of intended goal of creating functional test. not fluent ruby (or gherkin, given reference site incomplete) if care share enlightenment. appreciated. .feature , .rb files follows

my_first.feature:

feature: running test   ios developer   want have sample feature file   can begin testing  scenario: example steps   given on welcome screen   touch “searchbar” button   enter "fire tower" "searchbar" input field  

my_first_steps.rb:

given /^i on welcome screen$/  element_exists("view")  sleep(step_pause) end  /^i touch "searchbar" button$/  touch("view marked:searchbar") end  /^i enter "fire tower" uisearchbartextfield$/  sleep(step_pause) end 

it if pasted output get, think can you. 1. try using calabash console try out calls want put steps. see how here https://github.com/calabash/calabash-ios/wiki/01-getting-started-guide 2. in step

touch("view marked:searchbar") 

you forgetting single quotes around mark. should be

touch("view marked:'searchbar'") 

however earlier experience had problems touching searchbar , solution touch based on text displayed in searchbar. if have problems getting work can try approach.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -