Questions tagged [protractor]

An end-to-end test framework for AngularJS applications. Protractor runs tests against applications running in a real browser, interacting with it as a user would.

Filter by
Sorted by
Tagged with
3
votes
1answer
567 views

WebDriver Error Cannot use 'in' operator to search for 'String' in false

I have been using selenium webdriver with protractor for more than a year now and recently after updating to the newest versions i got an error that i have never encountered before. As stated in the ...
3
votes
1answer
1k views

How to debug events not firing after clicking continue button?

I have an automated script that fills out guest information and clicks a 'Save and Continue' button to proceed to the next page. The button is being clicked correctly because it becomes disabled but ...
1
vote
1answer
5k views

Locating ng-click in protractor

I cannot figure out how to locate ng-click in the page object file for the code below: <a ng-click="toggleGuestParams('personal')" class="ng-click-active">Select/Unselect All</a> There ...
1
vote
2answers
23k views

Handling DropDown using Protractor

I am facing issues with handling a trivial scenario during automation. I need to select a specific option using Protractor. I am passing the index of the option that I want to select, and then ...
2
votes
1answer
2k views

Attaching screenshots to JUnit test reports

We run our tests on Jenkins using Protractor generating a JUnit XML test report via JUnitXmlReporter from jasmine-reporters. Is it possible to attach screenshots, with the current state of an ...
2
votes
0answers
621 views

Protractor custom bindings don't work after multiple redirects

This test does a login on a non-angular site, then switches to angular app and performs the testing. I found that regular bindings by.css work, but custom ones like by.binding don't. describe('show-...
2
votes
1answer
2k views

Parallel execution : Protractor

I need to reduce the run time of my Protractor tests, so I want them to run parallel on multiple app servers. Protractor can by multiCapabilities to open multiple instances of webdriver, but for all ...
5
votes
1answer
4k views

How to Run e2e tests on multiple browsers in series?

I am running e2e tests using Protractor on a VM through azure. I want to run tests on multiple browsers, which Protractor allows me to do by adding a list like this (from the protractor.config file): ...
0
votes
1answer
530 views

How can I find text for span within span?

Following is my code: <span id="agText" class="ag-header-cell-text"> <span style="height: 100%;">Coordinator</span> </span> I was trying the following: var cordinator = ...
2
votes
1answer
2k views

Protractor can't see the file just downloaded into the folder

// gives count of downloads in download folder. this.getCountOfDownloads = function (fileName,elementToClick) { //provides a way to look for filenames matching a certain pattern (in the worst ...
3
votes
1answer
2k views

Separate configurations for different environments on protractor

For example local, qa, and production. Each of them has different URL. So I expect to contain something in URL. So I need to take some parameter from console where I run the protractor. I run ...
3
votes
1answer
939 views

Scheduling time interval : Protractor

I have written some E2E testcases using protractor, selenium-server and angularjs, now I want to run the same testcases(with or without any change) again and again by setting some time interval for ...
8
votes
2answers
1k views

Canonical way for multi-session browser testing in Protractor

The Question: What is the canonical way to write multi browser window tests in Protractor - the tests that involve multiple sessions fired up interacting with one another? The Story: The main ...
1
vote
0answers
548 views

Unable to run the Protractor tests in safari browser and build failed

My safari browser unable to locate the elements also and used so many delays: My Configurations are: iMAC Version: 10.11.6 OS X El Capitan Safari Version: 10.0.3 Protractor version: 5.1.1 ...
2
votes
1answer
3k views

Can Protractor tests be run in a mobile device and How?

I have seen that Protractor tests can be run with a Mobile Setup as described in Protractor Documentation, but this means you are running the tests on emulators. What I would like to accomplish is ...
4
votes
1answer
81 views

Creating a RTM doc using Protractor Tests

I would like suggestions for how people create RTM documents when creating automated test cases using Protractor/Jasmine. We have our suites set up based on logical sections of the application, not by ...
0
votes
2answers
637 views

jenkins job for protractor cucumber

I have a protractor cucumber intellij project. I want to create a jenkins job that can run my tests. I have no idea how to do it. I could not find any tutorials that explain where to start from.
1
vote
3answers
2k views

Nesting callbacks with protractor

I'm using test framework protractor to test an angularjs app. I've been doing this for sometime now and one of the question that I've not been able to answer is : Suppose I want to modify a the value ...
2
votes
2answers
2k views

How to test export functionality?

I have a scenario to test where I need to test that the export functionality is working properly or not. I know that usually in these cases, firstly we check the availability of file in location and ...
2
votes
1answer
730 views

Selenium vs Protractor - how to choose [closed]

Selenium or Protractor? In what circumstances is Protractor a better tool for testing a web application than Selenium? I often see interview questions about Selenium, but Protractor seems to me to ...
2
votes
2answers
3k views

Protractor tests run in parallel influence each other

I currently have Protractor set up to run multiple Chrome instances so that I can run my tests in parallel. However, I've noticed that the tests in one browser instance are influencing tests in ...
1
vote
1answer
769 views

Protractor on offline app? Does it work?

I was wondering is there anyway to do E2E testing for an offline app with protractor? I cache my pages in the application cache and store data using localForage, testing it online is fine, but I also ...
2
votes
1answer
580 views

Do not show browser and OS in Selenium console output

I am running Selenium tests (with Protractor) on several browser at the same time to speed up the testing. Jenkins starts the tests and receives the output in a console. To make things more readable ...
1
vote
2answers
6k views

How to check if a file with random changing name is downloaded using protractor selenium? [closed]

This is the path of file capabilities: { 'browserName': 'chrome', 'chromeOptions': { prefs: { download: { 'prompt_for_download': ...
2
votes
1answer
14k views

How to Handle the File Upload dialog in Protractor for IE11?

I know the default answer to handling explorer.exe is to use AutoIT, but AutoIT utilizes Java Runtime to use the exported .exe to upload the file and close the dialog. My tests are all in Protractor ...
2
votes
3answers
3k views

Protractor - Find delete button in <tr> with respect to <td> in other <tr>

In the web page, we have a number of rows (with row nested to it). The below code is a snippet for one such row. <tr ng-repeat="abc" class="alpha"> <td class="one ng-binding"> Apple &...
2
votes
1answer
4k views

Protractor - element.all().count() is waiting long where there is no such an elements

I've got problem with some of my protractor tests. In short word, i need to check some numer of elements on my page with number from previous filter. When filter is clicked there should be displayed ...
1
vote
1answer
2k views

How to count rows in GridView using webdriver c#, how to translate the existing protractor script to c# webdriver

I am trying to count the rows of the table and below is the HTML: I want to get the total count rows of the table, discarding table header and expanded row. I had tried the code below: var ...
1
vote
1answer
1k views

How to distinguish ng-bind's in Protractor?

I was looking for some help on how to distinguish a bunch of ng-binds that are in an ng-repeat. The goal of this situation is to go through the ng-repeat list of documents, and click on the ng-bind ...
2
votes
2answers
248 views

Creating negative automation test scripts

When creating a negative automation test script, should this be separated from my positive script, or can I also include the negative scenario in my script. I am using protractor for this. Thanks
3
votes
3answers
429 views

Looking for protractor resources, wanting to get into this automation tool

A lot of surrounding companies are adopting a testing framework called Protractor, I am wondering if anyone has any advice on where to get started with this automation tool.
2
votes
0answers
260 views

Protractor-Cucumber: PageObject [closed]

I have defined `loginpage.js': 'use strict'; ( function () { var ptor; var navigate = function () { //browser.ignoreSynchronization = true ; ptor = protractor.getInstance(); ptor....
0
votes
1answer
270 views

Protractor on JSF

I need to click on a oneselectmenu and select an item made of primefaces JSF using protractor js. Heres my code: it ('should pesquisa', function () { browser.get('localhost:8080/myapp/geral....

1 2 3 4
5