The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
2
votes
1answer
700 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 ...
10
votes
3answers
12k views

Why should we use javascript for UI test automation?

Background:JavaScript based automation frameworks heavily depends on asynchronous execution, promises, callbacks, anonymous functions, etc which are inherently complex and probably an overkill for a ...
3
votes
1answer
547 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 ...
2
votes
1answer
954 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 ...
4
votes
2answers
3k views

How to clear a directory before running Protractor tests

I have a Protractor test to validate that an excel file is correctly downloaded in the Downloads folder and then I am able to upload the same. Since I will be running the test multiple times, I need a ...
8
votes
2answers
858 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 ...
3
votes
1answer
436 views

How can I add headings to my protractor-jasmine2-screenshot-reports

I am sharing my spec file, the generated report contains only 'through Gmail Account' text but I want to add 'Password pop up' text and many other headings also. I tried by adding one more 'it' block ...
3
votes
1answer
1k 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 ...
1
vote
2answers
4k 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': ...
3
votes
2answers
9k views

How to check if a file is downloaded using protractor selenium?

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

“Failed: Cannot read property 'isPresent' of undefined”

it('should be able to create a task for a product as a CTA', function () { browser.sleep(6222);browser.sleep(6222);console.log("ss"); productPage.productsTab.click(); expect(productPage....
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 &...
1
vote
3answers
1k views

Are there any other frameworks other than Protractor for testing Angular web apps?

Protractor seems to be the buzzword these days for automating Web pages built with Angular JS. Are there any other frameworks other than Protractor specifically built for testing Angular web apps?
3
votes
0answers
154 views

Is there a way to stop GridLauncher opening during testing on Mac?

Since moving from a Linux VM to a Macbook Pro for testing, I have been having a recurring issue running Protractor automation. At a certain point in my suite all, a Java application called ...
-1
votes
1answer
38 views

Why are these Webdriver tests running with my own Mocha-Protractor tests?

While running my entire suite of tests, many tests from the WebDriver module are also running. Note that they fail. Mostly for this reason: ReferenceError: expect is not defined My own tests run ...
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 ...
0
votes
2answers
563 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.
5
votes
2answers
784 views

Using SuperTest/Protractor on unsecure HTTPS

I am trying to run automated API tests on localhost with an invalid cert. Is there a chromeOption equivalent to "Proceed Anyway" that I can pass to the tests so they can get a response from the url? ...
2
votes
1answer
3k 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 ...
2
votes
1answer
939 views

Protractor Dynamic numer of test runs depened on count() result

In my Protractor Test suite I have some problem with parametrizing number of tests . it('Login and Count', function () { PageObject.login(); var number = element.all(by.something()).count()....
1
vote
1answer
1k 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
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 ...
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 ...
12
votes
8answers
49k views

Why can't we use Selenium Webdriver to test Angular JS sites?

If we look at the Protractor architecture, Protractor uses WebDriver JS to call Selenium Webdriver which ultimately calls browser driver and then browser. Now since Selenium is passing commands to ...
4
votes
1answer
79 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 ...
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): ...
3
votes
2answers
6k views

Switching windows with non angular pages using Webdriver JS

I have a non angular page that I open and then click a link, which changes pages and I fill out a form with some information and then click a button. Upon clicking that button another browser window ...
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 ...
2
votes
2answers
194 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
0
votes
4answers
442 views

End-to-end testing from desktop app to website

I'm currently investigating ways for executing End-to-end testing on a system that contains two parts which are dependent on one another. The first part is a desktop application and the second is a ...
1
vote
1answer
619 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
1k 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 ...
3
votes
1answer
735 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 ...
2
votes
0answers
535 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
0answers
253 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
229 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....
2
votes
1answer
5k views

Using Protractor Cucumber JS: When running a test, the test passes when it shouldn't

I'm writing a test where I should log in. It passed given the proper inputs but when I change its password/username to garbage, it still passes. I'm new to this and I really think I missed something ...
3
votes
3answers
399 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
1answer
12k 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
1answer
533 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 ...
7
votes
4answers
1k views

Cucumber + Protractor : What will be good practices to maintain test data in separate file?

I am looking to see if this is possible... I am writing UI tests for web and mobile in Cucumber (using Protractor for web and Appium for mobile) and would like to store login details (email and ...
2
votes
6answers
3k views

Coded UI vs Protractor

I just joined a new company who doesn't work with any kind of automated tests. I have been hired to start test automation, and looking around I found two interesting options to e2e tests, Protractor ...
5
votes
2answers
1k views

Associate Protractor tests to TFS properly

I'm trying to write a few tests in Protractor, but looking a bit forward I wonder if anyone knows how to fully associate my Protractor tests to my test cases in TFS. So, I can run it those tests from ...