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
0
votes
1 answer

Clic and slide at the same time - Protractor

Hello the community ! I'm coding a test for e2e, and I would like to slide the right circle to the extreme left for testing the price tool on my website. I would like to click and slide the slider at the same time (check on picture). The problem…
0
votes
2 answers

for loop in protractor js

I have a scenario where there are repeating elements with classname .product-tile and I am trying to get the elements by that class name and loop through each of them and finding the element whose title is Products. If so, I'm trying clicking on…
tania saxena
  • 173
  • 1
  • 2
  • 16
0
votes
1 answer

Protractor:Is it possible to print only the numbers contained in an elements that contains both numbers and characters

I'm new to Protractor and I'm trying to retrieve only the numeric values contained in the following element

Total Balance: EUR 718,846.67

I'm able to retrieve the whole text but would like to be able…
Edmond
  • 131
  • 3
  • 15
0
votes
1 answer

getting error when run the `protractor` using chrome

I ma trying to run the protractor using chrome but i am getting error as : protractor config.js [15:54:58] I/launcher - Running 1 instances of WebDriver [15:54:59] I/local - Starting selenium standalone server... [15:55:01] I/local - Selenium…
3gwebtrain
  • 14,640
  • 25
  • 121
  • 247
0
votes
1 answer

Expect condition for url that changes frequently

In the app there is a url and last part of this url has an id that keeps changing , so the url shows as e.g. app.com/pages/revision=9525132131313. The number in the last part keeps changing. I want to apply expect based on the url. Can I somehow…
0
votes
0 answers

e2e protractor test: getAttribute('value') return empty value running on jenkins

I'm writing a protractor test that check the value of an input type field. Code in the Test Page: expect(logPage.logFileSizeField.getAttribute('value')).toBe(logFileSizeDeafault) Object Page code: this.logFileSizeField =…
0
votes
0 answers

How to locate this button from nested html using protractor and chai

Hi I'm writing some e2e tests using protractor, chai and mocha. Language is Typescript. I'm very new to these things. I've been stuck for hours on locating an element. How do I locate button "Edit ValueChart" from a bunch of nested HTML as the…
vw511
  • 171
  • 10
0
votes
1 answer

How to select more WYSIWYG editor with protractor?

I have 2 WYSIWYG editor on the page, I select first and enter the source code, after that i want to select second WYSIWYG editor and enter source code, but protractor enter source code at first WYSIWYG editor? My code for that: // First…
0
votes
1 answer

Protractor by.binding() returns two bindings combined

I'm using AngularJs 1.6 and protractor to do e2e tests. I have the following code in my HTML template

{{exercise.a}} * {{exercise.b}}

Then in protractor I'm testing the page and want to get value of that bindings. I…
Stepashka
  • 2,648
  • 20
  • 23
0
votes
3 answers

Can't select element from drop down menu E2E testing using Protractor

There's quite a few ways to do this and I've tried a good number of them but I can't select an item from a drop down menu when doing an automated test. "Select" is the default choice that appears in the drop down menu, I want the automated test to…
Edmond
  • 131
  • 3
  • 15
0
votes
1 answer

How to run a javascript function before starting any test case in Protactor?

Actually, i am writing some test cases for one angular app but the first page is taking too much time too load and having a popup box for instruction. So i need to store some value in localStorage of browser for making that popup box invisible. So…
Shravan Jain
  • 720
  • 1
  • 11
  • 32
0
votes
0 answers

How to write database undependent test plan?

I define test cases when I make assertions that are database dependent. Eg: Expect user with username:testusr password:pws123456 to be able to authenticate When databases changes test execution report change. What are the best practices to have…
amine amine
  • 461
  • 5
  • 12
0
votes
1 answer

how to automate non Java Script form for login into a mobile app?

I am trying to automate our mobile application(It is an angular app). We have recently implemented token server into all of our apps. The login form (spoof page) for our app is not a Java Script form. I am not sure how to automate that or may be…
0
votes
0 answers

Working with JavaScript array.map() callback function

My confusion with my array.map() example is that it returns an array of undefined values. This is in a Protractor e2e context, but very specific to array.map this.getColData = function(colIdx){ var colClass = '.columnUi-' + colIdx; var cols =…
bob.mazzo
  • 5,183
  • 23
  • 80
  • 149
0
votes
2 answers

Can i access the ng-app value in a protractor test?

I simplified the code i need to test to this: .... And i am running some protractor tests, i want to access the value of ng-app so i can compare and see which app is running in each page. I have tried var…