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.

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
170 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 ...
3
votes
0answers
321 views

Protractor: Getting 'Failed: Unknown error' for test running in Edge Browser

My setup: Protractor Version: 5.3.0 Edge Version: 38.14393.2068.0 Edge HTML: 14.14393 MicrosoftWebDriver.exe version: 10.0.14393.0 Windows 10 Enterprise 64-bit Code: seleniumAddress: 'http://...
3
votes
0answers
185 views

Protractor isClickable with a twist

New to protractor and excited about learning. I have researched and read posts and learned a lot but this one has me stumped. The UI has a table which lists products based on their state. Once the ...
3
votes
0answers
936 views

Protractor starts Firefox but doesn't run any tests

Problem is the web app I'm testing is behind 2 basic auths and requires a proxy. I wanted to pass the two basic auths by adding AutoAuth addon in a FireFox profile and setting up that profile to load ...
3
votes
0answers
360 views

Multiple protractor tests creation using loops based on returned promise value

I would like to dynamically generate it blocks based on the values returned by a promise. Something along these lines: describe('Main Page', function() { var rowNumber=event.script1(); //---...
3
votes
0answers
602 views

Unable to add/attach screenshot and test steps in Report

I am working on protractor and using "protractor-angular-screenshot-reporter" to generate the report. But I am unable to add screenshot and test steps in this report. Can anyone please help ...
2
votes
0answers
2k views

How to import and use Angular Environment variables in `protractor.config`?

I would like to save some credentials in the angular environment.prod file and pass them to protractor.config.js Is it possible to import and use env variables from the Angular app environments files. ...
2
votes
0answers
506 views

Can't swipe open Ionic ion-menu with Protractor

We have this Ionic3 ion-menu (hidden left-side slide-out menu) which we have to swipe it open to the right so that it shows. On Chrome, with the click of the mouse, it can be easily done. But can't ...
2
votes
0answers
620 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
93 views

GUI Testing Angular SPA?

Developer here. Our QA team is researching new strategies for E2E testing for a new product. To start, it will be an Angular SPA, and eventually a PWA. They are leaning towards using Quantum / ...
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 ...
1
vote
3answers
3k views

How to bring elements to view automatically in Protractor or selenium

I have a webpage to be tested which has a button at the footer of the page. When i click it, there should be an error message shown near to it. I was successful in automating this scenario but the ...
1
vote
0answers
150 views

(Visual) testing of the geographic/GIS maps functionality using Protractor

I'm preparing an automated system/end2end tests for the AngularJS application using Protractor. One part of the application, that I'm going to test, displays geographical maps. I need to verify for ...
1
vote
0answers
1k views

Partial text sent when using SendKeys in Protractor

Inconsistently, the partial text is being sent when using SendKeys and causes a particular spec to fail. Below is the test that needs to happen for the other tests to past successfully it('should ...
1
vote
0answers
472 views

Protractor port option error when trying to upload a CSV file

I'm receiving the following error in a protractor test when trying to upload a CSV file: Failed: "port" option should be >= 0 and < 65536: 100000 I inherited these tests but there is ...
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 ...
0
votes
1answer
16 views

Screenshot not found error in protractor

I am getting broken image for screenshot. Unable to take screenshot in protractor framework. Please anyone help on this. My code: testconfig.js file var fs = require('fs-extra'); var today = new Date()...
0
votes
0answers
16 views

How to debug Protractor Cucumber test using Visual Studio Code

this is my launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft....
0
votes
0answers
63 views

Protractor file upload hanging after send keys on IE11. Works on Chrome/Firefox

I have a protractor/cucumber script that successfully uploads a file on chrome/firefox. When I run the same script on IE11, then the website hangs with the file dialog box open and no file sent. The ...
0
votes
0answers
28 views

How to type/send values to fast-monaco-editor

I tried clicking on the field and typing values. Actually the field is getting clicked but its not typing values. I am working on protractor Selenium Java framework. Sharing below the code I used ...
0
votes
1answer
3k views

Element not interactable in a non Angular site

For my test, I am using protractor. The test first opens an Angular page, do some actions and then open a nonangular site. For the nonangular site I did the following: it('should login on BC', ...
0
votes
0answers
474 views

How to access Angular component variables in protractor E2E test?

In Angular JS, there is an option to set and get the controller variables via protractor using "Evaluate()" function like in the below example, > element.all(by.repeater("address in addresses"))....
0
votes
1answer
589 views

unable to run test cases in IE browser in protractor, selenium framework for angular.js web application

I was trying to execute test cases in IE, and I am facing errors as shown in error picture, my config file is shown below. using IE 11.09 with selenium webdriver-4.0.0 in windows server 2012 R2 ...
0
votes
1answer
1k views

Why element locators are not suggested in visual studio code for protractor?

I don't get suggestions for "element(by." element locators in visual studio code. Im using protractor. I have changed the settings file also. Settings.js { "editor.quickSuggestions": { "...
0
votes
1answer
645 views

Why does Selenium suddenly skips all my tests?

I'am used to run the E2E test couple of times a day during development... Today It suddenly skips all my test and all my spec files register.e2e-spec.ts I didn't do any changes or updates on my spec ...