Sha256: 3d9739bc7995664e7576116a3ca30ec2937d027b1a87ed076d9d3affea4c44c1
Contents?: true
Size: 606 Bytes
Versions: 5
Compression:
Stored size: 606 Bytes
Contents
# common methods def back_click(opts={}) opts ||= {} search_wait = opts.fetch(:wait, 60 * 1.7) # iOS may have multiple 'back' buttons # select the first displayed? back button. wait(search_wait) do button_exact('Back').click end end def leave_textfields back_click screen.must_equal catalog end def go_to_textfields screen.must_equal catalog wait_true { text('textfield').click; screen == 'TextFields' } # wait for screen transition screen.must_equal 'TextFields' end def screen $driver.find_element(:class, 'UIANavigationBar').name end def catalog 'UICatalog' end
Version data entries
5 entries across 5 versions & 1 rubygems