Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

1
vote
0answers
21 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 ...
0
votes
1answer
137 views

PROTRACTOR: Right click on link and open in NEW TAB

TestCase: Right click on link element and open in NEW TAB or NEW WINDOW. I could able to right click on the element using the below code . BUT NOT SURE HOW TO SELECT THE OPTION OF "OPEN Link in NEW ...
0
votes
0answers
70 views

How to Debug Protractor test written in typescript?

I have an typescript project with protractor. I could able to add debug point to the transpiled javascript launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view ...
0
votes
0answers
36 views

How to debug a protractor test written in typescript using cucumber?

I have a sample project with my test cases written in protractor in ts. I could not able to debug the ts. package.json "debug": "node --inspect=1337 --debug-brk --nolazy node_modules/cucumber/bin/...
1
vote
1answer
83 views

How to structure automated tests for feature with two dashboards?

I'm going to prepare e2e tests for chat app with two customer dashboards. First (written in Angular) is accessible from desktop browsers and second (Ionic) through mobile devices. When customer ...
0
votes
1answer
80 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 ...
1
vote
1answer
89 views

Scrolling to Botton of Text Area Protractor

I have a text field that I need to scroll to the bottom of in order for the Next button to be activated to click. This project is using Angular 6 my tests are e2e test running on the protractor/...
4
votes
6answers
166 views

How can a beginner develop an automated testing framework completely from scratch?

I am completely into manual testing, I was asked by my manager to start developing an automated framework for my company website and mobile application. I am a complete beginner and have a very little ...
0
votes
2answers
105 views

Protractor or Selenide for automation testing Angular6?

We began automation testing of our new project, which is implemented on Angular6. We decided to split the testing of the front-end, back-end and user-scenarios. To automate the testing of the back-...
5
votes
3answers
143 views

Is it a good idea for a Developer to review a tester's code

Background : Currently working in a firm which follows a practice where the QA's e2e and API automation suites are mandated to be reviewed before being pushed in a CI pipeline. It's a practice that is ...
2
votes
1answer
53 views
1
vote
3answers
104 views

Is it possible to test dynamic web sites using selenium?

I have a dynamic web site which is developed using angular(front end). Elements cannot be identified using ID,name etc... as they are not used to name elements. But models have used to name elements ...
1
vote
1answer
81 views

Protractor ConfigParser Error 105 getPage Timeout when trying to print to console

In Protractor, I need to run one line of code from the test suite called mytest: console.log('my first Protractor test'); I am not loading any webpages. I am only printing to the console. I have ...
0
votes
0answers
71 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 ...
0
votes
1answer
139 views

javascript isPresent always returning TRUE (Protractor)

So, I am accessing an application. There are multiple employee records. However, there are no duplicate records. I am deleting an employee record and then trying to verify that the employee record ...
1
vote
2answers
210 views

Need help with passing a variable in xpath

I am automating my application using Protractor. For one of the elements, I am using xpath, which is as follow: element(by.xpath('//ul[@id="employee-list"]/li[contains(text(),"Master Shifu")]')); ...
2
votes
0answers
237 views

How to stop for loop when I found the element. In Protractor [closed]

for (var i=1; i<8 ; i++) { var eleClick = element(by.xpath("//*[text()='Choices for Independence-Guidelines - 3705']")); eleClick.isPresent().then(function(result){ if(result) { ...
1
vote
1answer
129 views

How can i click on Save button to save a downloaded file using protractor in IE

How can i click on Save button to save a downloaded file using protractor in IE.
0
votes
0answers
52 views

Cucumber JS Step Definitions Coming Incorrect For Scenario Outline

Currently working with the .js port of Cucumber - CucumberJS. I am facing this issue where the scenario outline steps are not coming in the defined step. My Scenario is pretty simple Scenario ...
1
vote
1answer
275 views

Not able to check the checkboxes on a javascript page

Here is the code I used to select the checkboxes selectAllEmployeeInputRequired() { this.scrollToAndClick(this.employeeInputButton); return browser.wait(this.isVisible(this.employeeInputModalForm)) ...
1
vote
2answers
219 views

What to change in protractor configuration if moving to vue.js?

My company is going to slowly transition from angular.js to vue.js. I have protractor tests set up and running successfully. Aside from the page objects specific to angular, is there anything that ...
0
votes
0answers
48 views

BDD of PDF documents with protractor

I have an angular web app that calls some miroservices that generate PDF Documents. I am adding the ability to localize the date formats of the word documents generated based on the language sent via ...
1
vote
2answers
95 views

E2E - Is it possible to share data between e2e.spec files?

I do have 2 *.e2e-spec.ts files for an E2E testing. So now I would like to share data between these files. e.g. an email which is used for a signup signup-e2e.spec.ts and I would like to use it for ...
0
votes
1answer
156 views

Unable to run protractor test in browserstack on ios device

I am trying to run protractor test(ios-11, iPhoneX)in browserstack. I am getting "Error: Error while running testForAngular: Unable to communicate to node" error and some time I am getting the error ...
0
votes
0answers
596 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....
1
vote
0answers
394 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 ...
1
vote
1answer
888 views

How to make a variable in `protractor.conf.js` available in spec file?

I have a variable in protractor.conf.js which is exported within onPrepare() function as: global.myVariable = myVariable, and in spec file I'am trying to use/call it, but it seems that it can't be ...
1
vote
1answer
423 views

Protractor- in same page how to switch from non angular to angular, its clicking on non angular elements but not on angular?

In same page how to switch from non angular to angular, it is clicking on non angular elements but not on angular, when click on non angular lookup then angular window(Popup) will open
1
vote
1answer
351 views

E2E: Retrieve email-link - How to invoke callBack function for mailListener?

I do have an E2E test for retrieving confirmation email after registration. I need the link in the confirmation email to login the user as the link in the email contains the token etc. for access. ...
1
vote
1answer
212 views

E2E: How to execute click event twice and successively - without any error?

I do have a register process/form which passes email, password, confirmPass and a tc checkbox which has a boolean value. When the user submits the form, an open dialogue with a text opens and in the ...
2
votes
1answer
274 views

e2e test fails inconsistently

I do have an e2e test for an Angular app. It works fine on my local machine, but on the production repo, it runs inconsistently.. in other words sometimes it fails but sometimes it's runs successful. ...
1
vote
4answers
1k views

Protractor - jasmine; How to click submit button

Our dev has a submit button like this: <button _ngcontent-c6="" class="btn btn-block btn-primary mt-lg" type="submit">Login</button> I tried using: element(by.buttonText('#submit')); ...
0
votes
3answers
2k views

Switching to iframe using Protractor

Anyone have experience/guidance on switching to an iFrame using Protractor? The iFrame opens and I have a wait for a specific button on top of the iFrame that is a separate module but cannot get focus ...
0
votes
1answer
843 views

Protractor : How to resolve “failed loading configuration file conf.js”

I'm new to protractor, can somebody tell me how to fix error code 105 Q$ protractor conf.js [16:29:26] E/configParser - Error code: 105 [16:29:26] E/configParser - Error message: failed loading ...
4
votes
2answers
208 views

How to utilize javascript asynchronicity to speed up test execution?

How to utilize javascript asynchronicity to speed up test execution in protractor tests other than running tests in parallel? **Note:**This question is about utilizing core features of JavaScript ...
0
votes
2answers
2k views

Get current time in HH:MM format

How to get the current time and send it in HH:MM format in a field to schedule an event at the current time using Protractor?
1
vote
1answer
790 views

E2E - How to test login with fake data - username and password?

I do have an angular login page build as a SPA: http://localhost:port/login which works fine. And I wrote an E2E integration test for that. It runs fine regarding checking the input-text for username ...
2
votes
1answer
912 views

Protractor: Firefox browser opens but URL is not launched

I am trying to run TestCase in Firefox browser. Result is : Firefox browser opens, but URL is not loading. FIREFOX browser - 53 Selenium- webdriver - 3.6.0 NPM - 3.10.10 Protractor ...
2
votes
2answers
671 views

Selenium for angular - How to install and run Selenium for Angular E2E testing?

The question seems to be asked in some other Postings here, but I'am relative new to testing with selenium. I would like to use it for testing an angular app - E2E. I have been reading few postings ...
3
votes
1answer
1k views

PROTRACTOR:How to tell protractor to stop or skip the TEST if any Test case is failed

Current Behavior: If any TestCase is Failed, Protractor not continuing with the next Testcase and holding to the same failed Testcase . Waits for long time and throws A Jasmine spec timed out. ...
0
votes
0answers
364 views

How to verify whether the pop up window is displaying or not using protractor?

I tried below codes but everything fails , even though the pop up window is displaying still the expectation is giving false result. page.get_Sent_Reference_Icon().click(); handlePromise = browser....
1
vote
1answer
1k views

Running Protractor tests from Jenkins

Usually, I used to run from command line (protractor config.js). I used protractor and java script. PLS LET ME KNOW STEPS TO ACHIEVE RUNNING FROM JENKINS To run from Jenkins , I created a batch file ...
1
vote
1answer
989 views

Unable to run Protractor tests in Microsoft Edge

I'm working on a project to begin testing Node/Angular applications using Protractor and Jasmine. I have a POC working in most browsers but having a lot of trouble with MS Edge. Here's my ...
0
votes
0answers
150 views

Storing time an email was sent and verify the text

What is the best way to store the time an email was sent and then verify the text using Protractor? Our platform has a grid with users names and if an email was sent, and if so at what time. When ...
0
votes
1answer
302 views

Please help with simple test case in jasmine

I am stuck with jasmine. I read/youtubed/googled but seems like I am on the wrong track. Here is what I have so far. I've used protractor --elementExplorer to pull items from http://www.angular.io: &...
2
votes
0answers
194 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 make ...
5
votes
2answers
448 views

AngularJS testing with Protractor- How to make test scripts portable?

I was recently tasked with integrating some automated testing into the development life cycle for one of my company's products. The product has been developed using AngularJS, and has gone through ...
2
votes
2answers
330 views

Protractor: Specified suite is not running .Instead all suite inside Suites(config.js) is running

Test Case: I wanted to run only one suite (eg) suite 'A'. So i specified the same while running configuration protractor conf.js -- suites A Problem: All Suites (A,B,C,D) are running, instead of ...
2
votes
1answer
1k views

Async/Await with CucumberJS

For my project, I am moving the code to the async/await model, thus disabling the control flow. While doing this, I am having persistent problems with the callbacks() and async tasks being either ...
2
votes
3answers
626 views

AngularJS testing using Protractor- how to close a dialog that opens automatically in order to continue with tests?

I am developing a test suite for one of my company's products- the product has been written in AngularJS, and I am using Protractor as the testing tool. Having never really used automated testing ...