59328

Does Protractor JS works for native mobile apps

Question:

I kind of think that answer of this question would be No by going through <a href="https://github.com/angular/protractor/issues/1798#issuecomment-74405588" rel="nofollow">Protractor issue 1798</a> and <a href="http://www.webdriverjs.com/protractor-vs-webdriverio-vs-nightwatch/" rel="nofollow">Protractor vs Webdriver-IO</a> comparisions.

I want to write automated tests cases for a hybrid mobile app in <strong>JavaScript</strong> which will run on <a href="http://appium.io/" rel="nofollow">Appium</a>.

Currently I have both <a href="http://www.protractortest.org/" rel="nofollow">Protractor</a> and <a href="http://appium.io/" rel="nofollow">Appium</a> configured in same project to run those End-to-End test cases, and they work.

<strong>Problems are</strong> that,

<ol><li>I have to write separate test cases for each of them. </li> <li>Cases should also work on mobile devices(Android and iOS) and protractor doesn't support native apps tests.</li> </ol>

Situation is, I am more comfortable with Protractor's settings in my current project than <a href="http://webdriver.io" rel="nofollow noreferrer">Webdriver-IO</a> which Appium uses (just a personal preference).

<strong>Question-</strong>

<ol><li>Is there a way of using only Protractor while writing test cases which would work using Appium and work perfectly on Devices/Emulators?</li> </ol>

I am also open for any suggestion(s).

If answer remains No, I will change my codes to only use WebdriverIO in order to keep my test cases reusable and only once.

Answer1:

The answer is still NO protractor currently does not have support for mobile native apps but you can use it for automating browsers in your mobile.

Better use <a href="http://webdriver.io/" rel="nofollow">WebdriverIO</a> but it also has its own limitations, please do check its changelog and github issues before deciding it as your webdriver framework.

Recommend

  • Can't find an element on a webview page of an android native app using Appium
  • installation directory of appium in mac
  • Is it possible to get session_id of active driver opened with Selenium and Appium if several drivers
  • Webpack failure during JHipster Prod Package
  • How to implement intervals in protractor/selenium
  • How to make sure the appium node is connected to only one phone?
  • How do I reference a promise returned from a chained function? [duplicate]
  • Including an Angular2 application to Asp.Net Webforms Page
  • Cordova Apache wrong module path
  • How do you keep a running instance for Google App Engine
  • ASPNetCore MVC Routing Let Server Handle Specific Route
  • PushKit for VOIP iOS apps
  • Facebook iOS SDK Not Calling Completion Handler
  • Does Apportable support to build library binary (.a/.so)?
  • Prevent Tomcat from caching request during starup
  • Django model inheritance, filtering models
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • How can I set a binding to a Combox in a UserControl?
  • Does it make sense to call System.gc() and Thread.sleep() when working on Bitmaps?
  • Custom Tabgroup Appcelerator
  • Switching to Release Build causes runtime error in Web Reference
  • Display issues when we change from one jquery mobile page to another in firefox
  • Deselecting radio buttons while keeping the View Model in synch
  • Problems to linebreak with an int in JLabel
  • HTML download movie download link
  • JavaScriptCore crash on iOS9
  • Updating server-side rendering client-side
  • JSON with duplicate key names losing information when parsed
  • Jquery - Jquery Wysiwyg return html as a string
  • QuartzCore.framework for Mono Develop
  • R: gsub and capture
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Comma separated Values
  • How to set the response of a form post action to a iframe source?
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • How to load view controller without button in storyboard?