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...
This seems to be a pretty simple question, but I really can't find an answer online and I was not able to find an answer myself.  I'm using AngularJS for my application and at some point, I have a native JavaScript confirmation box/dialog whi...
I already have started a server with webdriver-manager start, but I get this error when I try to run protractor:  Using the selenium server at http://127.0.0.1:4444/wd/hub [launcher] Running 1 instances of WebDriver ERROR - Unable to start a WebDrive...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.