I am using AppiumDriver and Selendroid for hybrid app. In native context, not able to find any element using uiautomator selectors, because I am getting next error:
info: --> POST /wd/hub/session/e905e901-eb52-5d9a-e864-1662a20734b7/element {"using":"-android uiautomator","value":"new UiSelector().text(\"Notifications\")"}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/session/e905e901-eb52-5d9a-e864-1662a20734b7/element","method":"POST","json":{"using":"-android uiautomator","value":"new UiSelector().text(\"Notifications\")"}}
info: [debug] Proxied response received with status 500: undefined
info: <-- POST /wd/hub/session/e905e901-eb52-5d9a-e864-1662a20734b7/element 500 32.457 ms - -
irb: d.find_elements :uiautomator, ‘new UiSelector().clickable(true)’
ArgumentError: cannot find elements by :uiautomator
from /Users/GoProVideoSQA/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/common/search_context.rb:59:in find_elements' from (irb):70 from /Users/GoProVideoSQA/.rvm/rubies/ruby-2.1.3/bin/irb:11:in’