How click on standart android button in autotest using Ruby, Appium? -


help please.

i use:win 7, ruby 2.0.0, appium 1.3.7.0

i test android app.

in test suite, in steps define:

appium.back

i try tap on hardware(native) button e.g. back, home.

but if run test, appears next error :

nomethoderror: undefined method 'back' appium:module

ansver question

in env.rb write

$capy_driver = capybara.current_session.driver

and use in steps

  $capy_driver.go_back 

or

$capy_driver.appium_driver.press_keycode 4


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -