Sha256: 99a956f57c9a8df7cf34a8fecc09a5ee1d2b39a17dae6595ac5ac3b6c5156dff

Contents?: true

Size: 615 Bytes

Versions: 7

Compression:

Stored size: 615 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 do
    text('textfield').click
    screen == 'TextFields' # wait for screen transition
  end

  screen.must_equal 'TextFields'
end

def screen
  $driver.find_element(:class, 'UIANavigationBar').name
end

def catalog
  'UICatalog'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appium_lib-8.2.1 ios_tests/lib/common.rb
appium_lib-8.2.0 ios_tests/lib/common.rb
appium_lib-8.1.0 ios_tests/lib/common.rb
appium_lib-8.0.2 ios_tests/lib/common.rb
appium_lib-8.0.1 ios_tests/lib/common.rb
appium_lib-8.0.0 ios_tests/lib/common.rb
appium_lib-7.0.0 ios_tests/lib/common.rb