Sha256: d56fb3b41bbb8795eac38de4e7e713da5036f1f0563f52b1c183c67f798a5f3a

Contents?: true

Size: 1.04 KB

Versions: 12

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

12 entries across 12 versions & 1 rubygems

Version Path
appium_lib-6.0.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-5.0.1 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-5.0.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-4.1.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-4.0.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-3.0.3 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-3.0.2 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-3.0.1 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-3.0.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-2.1.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-2.0.0 android_tests/lib/android/specs/android/element/generic.rb
appium_lib-1.0.0 android_tests/lib/android/specs/android/element/generic.rb