-1

I have configured all setup required for protractor + appium this here is my conf.js file

exports.config = {
  seleniumAddress: 'http://localhost:4723/wd/hub',

  specs: ['first.js'],

  // Reference: https://github.com/appium/sample-code/blob/master/sample-code/examples/node/helpers/caps.js
  capabilities: {
    browserName: 'chrome',
    platformName: 'Android',
    platformVersion: '7.0',
    deviceName: 'Android Emulator',
  },

  baseUrl: 'http://10.0.2.2:8000'
};

but i dont know how should i locate mobile app using script

or if i'm going wrong plz help me out with protractor + appium to test my first Android app...

Rao
  • 397
  • 1
  • 12

1 Answers1

1

Protractor does not support native Android apps: proof link.

With protractor you can mobile sites in browser or hybrid app that starts with WebView (by adding autoWebview: 'true', autoWebviewTimeout: '10000' in your config)

You want to test native Android app you need to use other client libraries:

1) wd.js

2) webdriverio

dmle
  • 3,498
  • 1
  • 14
  • 22
  • thanks for reply, here what i want to do is to test mobile a demo mobile app, but unable to locate the mobile app it opening chrome browser inside mobile ? – Rao Oct 24 '18 at 12:58
  • Once again: you can test any web site suing your configuration, protractor will start browser. You cannot run mobile app, e.g. Facebook, it just don't support it. – dmle Oct 24 '18 at 13:34