Unable to run Appium + Protractor together for Native App

I have a question on Appium - protractor bridge. Is it possible to automate native apps using appium-protractor bridge? or Protractor supports only Web,Mobile Web Apps and Hybrids app [only Web Views]? Please confirm.

I was just giving an attempt to automate an android native app, but was getting the below error:


UnknownError: Not yet implemented. Please help us: http://appium.io/get-involved.html
at new bot.Error (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:109:18)


==== async task ====
WebDriver.manage().timeouts().setScriptTimeout(100000)

Then I have added this capability “autoWebview: ‘true’”. Then app started loading, but findelement is failing?

Capability:
platformName: ‘Android’,
platformVersion: ‘4.4’,
browserName: ‘’,
deviceName: ‘Android Emulator’,
‘appium-version’:“1.2.2”,
app: ‘sauce-storage:xxx.apk’,
autoWebview: ‘true’

//Xpath selector statement:
ptor.driver.findElement(protractor.By.xpath("//TextView[contains(@text,‘Teams’)]") )

But I am getting the below error:


Message:
NoSuchElementError: An element could not be located on the page using the given search parameters.
Stacktrace:
NoSuchElementError: An element could not be located on the page using the given search parameters.
==== async task ====
WebDriver.findElement(By.xpath("//TextView[contains(@text,‘Teams’)]"))

Please someone shed some light into this.

Thanks
Raghul

Hi @jlipps, @bootstraponline @jonahss,

Not sure that I’m trying to do something that is not possible, but I’m trying to run tests on a native app using protractor+appium.

Please shed some lights into this. Is it possible to automate native ios/android app using appium-protractor bridge?

I am getting this below error:


UnknownError: Not yet implemented. Please help us: http://appium.io/get-involved.html
at new bot.Error (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:109:18)


==== async task ====
WebDriver.manage().timeouts().setScriptTimeout(100000)

My context is “NATIVE_APP”. But when i set “autoWebview: ‘true’”, app started loading, but not able to find elements.

Is this right way to do?

Any updates on this? I have a hybrid app and an HTML version. The HTML version runs through Appium fine, but when I reconfigure to run for hybrid Appium returns 500 for the async_script. I wrote the test in mocha without any issues. Not entirely sure why Appium would reject the async_script POST when the capabilities reference an app and not for a browser.

Hi,

Any solution for above post?

In your App’s onCreate add the following in the first line and rebuild the APK:
WebView.setWebContentsDebuggingEnabled(true);