I have seen it so many times where people suggest to use:   browser.ignoreSynchronization=true;  // or false   But I do not understand why do we need it?...
We have a rather big set of end-to-end tests on Protractor. We are following the Page Object pattern which helps us to keep our tests clean and modular. We also have a set of helper functions which help us to follow the DRY principle.  The Problem:...
The Problem:  In our rather big test codebase, we are using different keyboard shortcuts. For instance, to copy selected text we are using CTRL/COMMAND + C, to paste CTRL/COMMAND + v, to open a new tab CTRL/COMMAND + T etc.  To keep tests work on mul...
One of my test expects an error message text to be one of multiple values. Since getText() returns a promise I cannot use toContain() jasmine matcher. The following would not work since protractor (jasminewd under-the-hood) would not resolve a promis...
q library has this neat feature to resolve and spread multiple promises into separate arguments:     If you have a promise for an array, you can use spread as a   replacement for then. The spread function “spreads” the values over   the arguments...
I'm new on protractor, and I'm trying to implement an e2e test. I don't know if this is the right way to do this, but... The page that I want to test is not a full angular page based, so... I'm having some trouble.  On my first spec I...
I just started using Protractor to write tests. I am wondering what the difference is between the isPresent() and isDisplayed() methods.  The API definitions   isPresent isDisplayed   So... in what cases are they different?...
Checking the protractor documentation, I see there is a option to run protractor without using Selenium server using directConnect: true flag.  What is the difference between running protractor tests with a selenium server and without a selenium serv...
I got an array of promises from this code: element.all(by.repeater('unit in units')), and I am finding it really difficult to get the data into another array:  element.all(by.repeater('unit in units')).then(function (arr) {     var it...
I'm working on a project where the e2e tests are made using protractor.  Some tests, need to validate date/times. Tests are ok on our continuous deliver platforms that ensure the timezone remains stable.  However, when test are run on a local mac...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.