For the portal I am testing now, I came with the problem that I could not create any xpath locators, after some time I figured out that it was because of an '#document', this cuts the path and makes the simple "copy xpath" to direct...
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?...
I have an element defined as   this.clientRowName = element(by.id('CLIENT_NAME')); //page object file   I want to read the text in this element which is "ABC" but doing:     var client = page.clientRowName.getText();   returns an ob...
If Protractor is replacing Angular Scenario Runner for E2E testing, does that mean I will still be able to use it with Karma as my E2E testing framework ?...
I am trying to set a global variable on protractor to use in all describe blocks.  var glob = 'test';  describe('glob test', function () {     it('should set glob', function () {         browser.get('http://example.com/t...
I have found Protractor framework which is made for AngularJS web applications.  How can I use Protractor on a website which is not using AngularJS?  I wrote my first test and Protractor triggers this message:  Error: Angular could not be found on...
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...
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:...
I've been using selenium (with python bindings and through protractor mostly) for a rather long time and every time I needed to execute a javascript code, I've used execute_script() method. For example, for scrolling the page (python):  dri...
Is it possible to access angular within your protractor tests like you do in unit testing?  Use case is that I have a service that transforms text and I want to access that service to transform some data within the actual test script. I know there is...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.