angularjs-e2e Questions

1

Solved

I am trying to test an Angular Single Page application with protractor. I need to run the login script first. Only then I can move to other routes since there is a check for token in localStorage o...

3

I want to click on a specific location of my canvas element, so I wrote the following Protractor code: var canvas = element(by.id("canvas")); var clickCanvas = function(toRight, toBottom) { br...
Motherland asked 14/2, 2015 at 21:39

5

I am experiencing a problem which I could not solve for some time, and getting very frustrating since I don't have an idea what I am doing wrong in it. :) Any help is much appreciated. I am using r...
Electroencephalograph asked 7/8, 2013 at 11:37

1

Solved

Im trying to get an e2e test to work on the next example: HTML: <div ng-if="selectedItem"> <span class-"xxx">This is line 1</span> <span class="xxx yyy">This is line 2&l...
Coen asked 26/1, 2016 at 11:38

2

I've spent the afternoon on this and am making no progress, I'm really starting to wonder if it's even possible. I'm using Angular with Headroom to handle a menu disappearing when scrolling down. ...

1

I'm trying to use Protractor's addMockModule to insert mock data in my end-2-end test. My test is supposed to go to a web site, find a button by css-class and click it. The button click calls the ...
Mildew asked 27/11, 2015 at 11:58

1

Solved

I need to organize unit tests and end to end tests for my JavaScript Single Page Application. I'm using AngularJS Protractor/Cucumber for e2e testing and Chai for unit tests. I have e2e and unit ...

1

Solved

I made some test code for my JavaScript SPA application. I set the locale for the entire SPA pretending to run it in different parts of the world. Now, I set the locale overriding the getTimezoneO...
Insoluble asked 12/11, 2015 at 9:40

5

Solved

I have a partial with a select2 element utilizing Angular UI http://angular-ui.github.io/ The issue I am running into is that the element is required and although i have successfully set the field...
Ilsa asked 20/8, 2013 at 16:49

1

Solved

What I want to do is: expect(browser.getCurrentUrl()).toEqual(protractor.baseUrl + urls.cookiesPage()); This is what I get: - Expected 'https://somewebsite.com/about/cookies/' to equal 'undefi...
Conlon asked 21/8, 2015 at 14:46

3

Solved

For wait purposes I use such kind of wait function: browser.wait(function() { return browser.isElementPresent(by.repeater('recentName in recentNames').row(0)); }, 10000); How I can wait for ...
Infantilism asked 27/11, 2014 at 14:45

2

Solved

First of all, I've already checked various post and blogs concerning that point and I still can't figure out how to make it correctly. I have tried many different combinaison of : browser wait ...

1

Solved

There are similar questions (linked below) but none solves this problem. I'm writing Protractor tests for an Ionic Project. I need to execute tests at times when an Ionic Loading dialog appears and...
Merimerida asked 13/6, 2015 at 10:9

2

Solved

We are using protractor to test our front end angular app that we are building. Currently we are using browser.get() to specify our environement we wish to test again(localhost:9000, staging, UAT...
Noonan asked 20/5, 2015 at 18:31

3

Solved

I'm trying to get an e2e test running against my local server and test that the resulting url (after a navigational button has been clicked) is the correct result. However the resulting url is alwa...
Encumber asked 27/8, 2013 at 13:41

1

Solved

I am trying to make sure the page scrolls to an element when a certain span is clicked. So I need to check the element's y position. Can someone explain how I can get an element's position? elemen...
Duce asked 6/3, 2015 at 0:21

2

Solved

I had my protractor running untill few days ago when i started encountering: Using the selenium server at http://localhost:4444/wd/hub **** UNCAUGHT EXCEPTION **** Error: connect ECONNREFUSED at...
Coulomb asked 14/4, 2014 at 6:49

1

Solved

I am writting a protractor test case to download a file which can be of any type. Scenario: Download a file Step 1: Click on the Download Link Step 2: Check whether the file is downloaded or not ...
Knar asked 28/11, 2014 at 17:16

2

Solved

I'm writing end to end tests with Protractor for an angular website. We have to support certain languages so I would like to init chrome using the --lang flag and start it with some other language...
Conviction asked 11/11, 2014 at 19:3

0

I work on an angular front-end based on a fake backend implementation for development. This fake storage is built using localStorage and the http request are handled by the e2e $httpBackend. All o...
Jules asked 29/10, 2014 at 11:16

1

describe('The feature', function() { beforeEach(function () { browser.executeScript('localStorage.setItem("key","value");'); }); it('should do this', function() { }); }); but i get this e...
Hypaethral asked 10/10, 2014 at 9:12

2

In the (now deprecated) angular scenario test runner, there was an option to create a runner.html page that would run the tests in an iFrame while reporting the progress, step-by-step, in the main ...
Jacquettajacquette asked 14/7, 2014 at 14:36

3

Solved

I've been trying out the AngularJS e2e tests and am getting stuck determining whether or not a checkbox is checked. I used the end to end test for the checkbox input as a sample (see the End to e...
Dysphoria asked 18/9, 2012 at 21:20

3

Solved

I have an Angularjs application that uses simple javascript confirm before executing some actions. Controller: function TokenController($scope) { $scope.token = 'sampleToken'; $scope.newToken...
Gaynell asked 7/5, 2013 at 17:20

1

I get the following error in the command line when trying to run Protractor: > Fatal error: protractor exited with code: 1 I need to proxy to an https test server. How do I accomplish this? I...
Boysenberry asked 8/11, 2013 at 0:19

© 2022 - 2024 — McMap. All rights reserved.