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?...
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...
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...
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...
I'm getting an error that element I am trying to click on is not click able which I belieave is not true.  My error looks:   1) Open VehiclePage and populate data Populate vehicle data   Message:     UnknownError: unknown error: Element is not cl...
I've been writing e2e tests for my angular js app and am unable to figure this out. I've got a table with data in it. I want to extract the first rows data.  <table>     <tr>         <td><\td>         <td><\td...
How can I get the ng-model in ng-repeat with protractor ?  <div ng-repeat="field in master.linker | orderBy:'country.name'">     <div>         <p> {{ field.country_name }} </p>         <input ng-model="f...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.