Sha256: dd8b4ea7838dcbd0bed3923bd185a7bee505ba5c362ab0bb48c6c0d3e9952094

Contents?: true

Size: 1.04 KB

Versions: 18

Compression:

Stored size: 1.04 KB

Contents

# rake android['android/element/generic']
describe 'android/element/generic' do
  def content
    'Content'
  end

  def partial
    'tent'
  end

  t 'find works before and after get_source' do
    wait { find(partial).text.must_equal content }
    wait { get_source.class.must_equal String }
    wait { find(partial).text.must_equal content }
  end

  t 'find' do
    wait { find(partial).text.must_equal content }
  end

  t 'finds' do
    wait { finds(partial).first.text.must_equal content }
  end

  t 'find_exact' do
    wait { find_exact(content).text.must_equal content }
  end

  t 'finds_exact' do
    wait { finds_exact(content).first.text.must_equal content }
  end

  # scroll_to is broken
  t 'scroll_to' do
    wait { find('Views').click }
    wait { scroll_to('rotating button').text.must_equal 'Rotating Button' }
    # back to start activity
    back
  end

  t 'scroll_to_exact' do
    wait { find('Views').click }
    wait { scroll_to_exact('Rotating Button').text.must_equal 'Rotating Button' }
    # back to start activity
    back
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
appium_lib-9.3.4 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.3.3 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.3.2 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.3.1 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.3.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.2.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.1.3 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.1.2 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.1.1 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.1.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-9.0.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-8.2.1 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-8.2.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-8.1.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-8.0.2 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-8.0.1 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-8.0.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-7.0.0 android_tests/lib/android/specs/android/element/generic.rb