Questions tagged [angularjs-e2e]

The End-to-End testing framework for AngularJS.

The End-to-End testing framework for AngularJS. For large and small applications that grow in size and complexity it allows automatic testing to verify the correctness of new features, catch bugs and notice regressions.

The solution for testing used by the framework is an Angular Scenario Runner which simulates user interactions that will help to verify the health of the Angular application.

Issues related to the E2E Testing provided by AngularJS (http://docs.angularjs.org/guide/dev_guide.e2e-testing) and distributed as ng-scenario.

546 questions
5
votes
4 answers

How to close file upload dialogue after click on upload button in protractor

I want to upload an image file in protractor. the problem is i can not get "input[type = "file"]" element without clicking on upload button. when I click upload button, file upload dialogue popup opens. i have tried …
5
votes
2 answers

Protractor 5.1.1 doesn't work with Chrome 58

Recently my chrome browser updated to Version 57.0.2987.133 (64-bit). Therefore, my existing protractor test is not working with the current version of chrome. The error message is Failed: unknown error: Cannot use 'in' operator to search for…
Upalr
  • 2,140
  • 2
  • 23
  • 33
5
votes
1 answer

Protractor - Generating random data for tests

I am running multiple test suits in a shot. Current I am hard coding the data for testing Example element(by.name('email')).sendKeys(xxxxxx) element(by.name('password')).sendKeys('password') This email field has a unique key constraint, so each…
Vishnu Sureshkumar
  • 2,246
  • 6
  • 35
  • 52
5
votes
2 answers

Use Mock HTTP with Protractor and Jasmine

How can I use Mock HTTP with Jasmine and Protractor ? In my test.spec.js, I declared a mock, but this mock doesn't work. I don't have any error. My api always responds and not the mock. I never see 'mockModule!' in my console. My function is never…
Jérémie Chazelle
  • 1,721
  • 4
  • 32
  • 70
5
votes
1 answer

How to organize unit tests and e2e tests in AngularJS?

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 tests in two different folders (unit and e2e folder)…
Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
5
votes
1 answer

Protractor - Appium -

I am able to run automated tests both on Desktop, Mobile devices using Protractor + Appium. However having issues to run custom test, that work only in Desktop/Mobile only. for eg: One of my test validates Breadcrumbs, which are displayed only in…
5
votes
1 answer

Protractor click hidden element " RangeError: Maximum call stack size exceeded"

I'm having an issue with trying to click a hidden element in a Protractor test. Below is the error message that is being returned, as well the code snippet that is causing the error message. Any idea as to why this error is being thrown would be…
parchambeau
  • 1,141
  • 9
  • 34
  • 56
5
votes
3 answers

verify that element disappear in protractor

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 element to disappear from the page? I…
Sergey Teplyakov
  • 603
  • 8
  • 18
5
votes
2 answers

Activating chrome language flags when activating from protractor (selenium)

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. I searched the web and couldn't find any example to…
Alon1980
  • 1,225
  • 1
  • 16
  • 30
5
votes
1 answer

Exit Protractor e2e test on fail?

Does anyone out there know if there is a config that can be added to protractor's e2e.conf.js so it exits the test once it fails? Default behaviour is that if a test fails early on, you need to wait until it finishes to fix the error. From a…
d-hernandez22
  • 113
  • 1
  • 8
5
votes
1 answer

How to mock angular.module('myModule', []).value() in Jasmine/Protractor

I'm trying to use Protractor's addMockModule() to mock a simple AngularJS module and override a variable: Here is my HTML:
Overriden module value {{myValue}}
Leandro Gomes
  • 570
  • 6
  • 16
5
votes
1 answer

How do I access ng-grid elements using protractor?

I would like to write a protractor test for a page that uses ng-grid. I don't see any documentation on how to do that. On my page, I see a grid with data, the html looks like this:
user3769079
  • 51
  • 1
  • 3
5
votes
2 answers

maxlength on field not working with Karma

I have a field with a maxlength of 6, but somehow the following way of entering data results in 7 chars being allowed: this is the test…
Maarten
  • 4,643
  • 7
  • 37
  • 51
5
votes
1 answer

Running AngularJS Protractor with proxy to https

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 followed the advice from this Github issue, but I am…
Scott Rice
  • 2,430
  • 22
  • 18
5
votes
1 answer

Is there an example of AngularJS app generated by Yeoman with e2e tests and $httpBackend?

Is there somewhere an example of AngularJS app generated by yo angular generator that has e2e tests with $httpBackend from ngMockE2E module? Preferably with single and continuous versions for CI and development. It looks like using $httpBackend…
szimek
  • 6,404
  • 5
  • 32
  • 36