testing non-angular app with protractor and webdriver fundamentals
NickName:user2714417 Ask DateTime:2016-06-30T02:36:16

testing non-angular app with protractor and webdriver fundamentals

I am writing e2e tests for a non-angular app using protractor and while there is quite a bit of information on how to accomplish this, it seems there are many different ways and so I have some fundamental questions.

  1. When testing non-angular sites some folks say to just use webdriver calls, 'browser.driver.get()' for instance so that protractor does not expect angular to finish loading on a page etc. Other responses say that you can set browser.ignoreSynchronization = true, and make calls to browser.get() with no problem (this seems like the ideal solution so you can rely on one api call if dealing with angular and non-angular). Are these two methods equivalent and if not please explain differences.

  2. Does protractor still respect promises when dealing with webdriver or browser.ignoreSynchronization = true? For instance if I make a 'get' call, will protractor wait before executing next step until that 'get' request is fulfilled?

  3. Related to #2, Do I have to use promise chaining when dealing with webdriver/non-angular app to ensure user interactions are executed in order? For example if I use sendKeys() to enter a name and then click() to submit info, do I have to nest the click() inside of sendKeys().then?

  4. How exactly does webdriver know all elements of a page are ready after a get request (every solution I see involves using a timeout or relying checking if an element exists first)? What if that page has embedded apps (like a google map for instance) and I want to simulate a user clicking on 'view larger map' for my e2e test?

Copyright Notice:Content Author:「user2714417」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/38107615/testing-non-angular-app-with-protractor-and-webdriver-fundamentals

More about “testing non-angular app with protractor and webdriver fundamentals” related questions

testing non-angular app with protractor and webdriver fundamentals

I am writing e2e tests for a non-angular app using protractor and while there is quite a bit of information on how to accomplish this, it seems there are many different ways and so I have some

Show Detail

Protractor: Testing non-Angular App in an Iframe

I'm writing e2e tests for my non-angular app, using protractor Version 3.3.0. My app loads another non-Angular App inside an iframe, and i'm trying to write tests to the iframed-in with Protractor....

Show Detail

Alternativa to Protractor for NON-angular project

I need to find the best testing tool for automation of front end in NON-angular project. I was told that Protractor has a bad performance for non-angular testing and was advised to use Puppeteer. H...

Show Detail

Protractor throwing exception in synchronization between angular and non-angular

We are developing a protractor jasmine framework for testing the angular part of our application. When we run the script the protractor switches from non-angular to angular without any problem, how...

Show Detail

How to call a WebDriver-Java code from the Protractor

Requirement: Having two applications one is an angular(Say as A) and other one is non-angular(Say as B) application. As of now both are Independent applications. In future we had a plan to integrat...

Show Detail

Iterate through HTML rows and columns of a table using webdriver using javascript(Protractor non-angular)

I want to iterate through rows and columns using Selenium Webdriver (I am using Protractor for non-angular web page). I get number of links for doing this using JAVA code which uses WebElement class.

Show Detail

Clear input with protractor non-angular syntax

I am testing a non-angular (javascript and HTML) site with protractor and selenium. I want to clear the input. I have used below commands browser.driver.findElement(by.id('txtname')).clear(); bro...

Show Detail

wait for page load for non-angular Application using protractor

i am new to protractor and testing Non-Angular login Page and on clicking login button on login page a new page appears and i need to click on a planning link.But on clicking Login button application

Show Detail

Protractor E2E Testing Error: Cannot find module 'selenium-webdriver'

Error: Cannot find module 'selenium-webdriver' I have installed protractor and selenium-webdriver globally using npm install -g protractor webdriver-manager update var webdriver = require('selenium-

Show Detail

Protractor basic fundamental questions - low on the learning curve

After working with Eclipse/JUnit/webdriver for few months, and now, trying to come up to speed with Protractor, I am forced to fall back and submit some basic questions for you java/js experts. Wh...

Show Detail