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?...
In protractor, there are, basically, 3 ways to check if an element is present:  var elm = element(by.id("myid"));  browser.isElementPresent(elm); elm.isPresent(); elm.isElementPresent();   Are these options equivalent and interchangeable, a...
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 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...
<tr id="item" ng-repeat="item in itemList>    <td id="code" ng-repeat="column in columns">Some Text</td> </tr>   I've seen some other similar questions but I couldn't solve it yet. Thats wha...
In my program I'm calculating two numbers, and I want to make sure that subtraction of them equals 1.  this is the code:  var firstCount=element.all(by.repeater('app in userApps')).count(); var secondCount=element.all(by.repeater('app...
The Question:  Is it possible to clean up the stack trace and leave only relevant frames eliminating everything Protractor, WebDriverJS and Jasmine specific?  The Story:  Let's execute this example test:  describe("SO test", function () {...
I'm trying to iterate through a list of elements to find if any one of them has a particular value as it's getText() value.  My problem is that my test is not executing in the order I've laid it out.  I've read a bunch about queuing a...
What I am trying to achieve in Protractor is getting all the links on a page and go to them one by one to check if there is a link that routes to a 404 page.  The following piece of code comes from my email page object, please note that I am calling...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.