I'm trying to simulate a click on the physical Menu button on Android with Appium and Ruby but I don't get it.
It looks like this thread can help me but I can make it work.
capabilities =
{
'appPackage'=> 'com.myapp.demo,
'appActivity'=> '.MainActivity',
'platformName' => 'Android',
'deviceName' => 'Galaxy S4',
}
@driver = Selenium::WebDriver.for(:remote, desired_capabilities: capabilities, url: server_url)
@browser = Watir::Browser.new @driver
@browser.driver.manage.timeouts.implicit_wait = 30
@driver.find_element(:name, "BANNER").click() #this line is ok, click on BANNER is done
@driver.execute_script('mobile: key_event', :keycode=> 82) #I've got an error telling me that it's not implemented yet...
I've tried to install gem appium_lib but I've got an error (don't know if I need appium_lib) :
ERROR: Error installing appium_lib:
ERROR: Failed to build gem native extension.
/Users/elerouge/.rvm/rubies/ruby-2.0.0-p481/bin/ruby extconf.rb
Building nokogiri using packaged libraries.
-----
So thanks a lot if you can help me to click on the Menu !
I'm very new in this area...