Sha256: d564d545b40ed79a4c18191eec2102f40388ab4b1866df7bd9bf4200d86fe078

Contents?: true

Size: 615 Bytes

Versions: 7

Compression:

Stored size: 615 Bytes

Contents

require_relative 'spec_helper'

describe 'UICatalog smoke test' do
  it 'should detect the nav bar and get some methods' do
    home_page = Pages::Home.new
    expect(home_page.navigation_bar.first).to be_truthy

    expect(Capybara.current_driver).to be :appium

    capy_driver = Capybara.current_session.driver

    # Call appium driver's methods
    capy_driver.appium_driver.find_element(:name, 'TextFields').click
    expect(capy_driver.find_custom(:name, '<enter text>').size).to be 3

    # Get Appium::Capybara::Node elements
    capy_driver.find_custom(:name, '<enter text>')[0].send_keys 'abc'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appium_capybara-1.9.0 example/spec/ios_example_spec.rb
appium_capybara-1.8.1 example/spec/ios_example_spec.rb
appium_capybara-1.8.0 example/spec/ios_example_spec.rb
appium_capybara-1.7.0 example/spec/ios_example_spec.rb
appium_capybara-1.6.0 example/spec/ios_example_spec.rb
appium_capybara-1.5.1 example/spec/ios_example_spec.rb
appium_capybara-1.5.0 example/spec/ios_example_spec.rb