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...
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 am writing tests in Protractor for an Angular app. I want to fill out a login form and submit it.   How can I do this? I have got this far, but I don't know how to set the value of the email and password fields.   describe('The dashboard...
I'm try to get the currently selected text in an input using window.getSelection() but I'm always getting an empty string:  expect(browser.executeScript("return window.getSelection().toString();")).toEqual("test");   Results i...
Is it possible to get the next sibling by using by.cssContainingText()  Example: HTML code is like below:  <div ng-repeat="SomeNgRepeat" class="ng-scope">     <div class="text-label" >SomeText</div>     <d...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.