Stack Exchange Network

Stack Exchange network consists of 175 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

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.

0
votes
0answers
18 views

How do I store a value in a global variable and then use it in subsequent steps of a scenario in protractor cucumber typescript based project

I want to retrieve a value in 'Given' function and then store it in a global variable so that the value is accessible in subsequent steps of a scenario in protractor cucumber typescript based ...
-1
votes
1answer
50 views

Transition from selenium to protractor - worth it?

Over the last few weeks, We have been experimenting with a protractor+typescript+cucumber framework for our new Angular 6 application. The main reason we thought our present Selenium+Cucumber+java ...
0
votes
0answers
14 views

Webdriver instances not created for custom protractor.conf file

I want to integrate my E2E suite in Travis, so I followed this article. As mentioned in the article I've created a custom protractor.ci.conf.js file of the Travis build. I've placed this file inside ...
0
votes
1answer
53 views

Appium + Protractor : element not intractable

I am using Appium and Protractor for e2e testing of my Ionic 4 application. The application Starts from the login page. Currently, I have implemented my spec.ts file as below import {browser, by, ...
2
votes
1answer
70 views

How to explicity fail e2e tests on unexpected behavior?

I am currently using protractor but the idea would be similar for any flavor of Selenium. Right now, depending on which step the test is on, my current framework will wait for elements to be ...
1
vote
1answer
62 views

how can I find element on next page, while it is not presenting on present page?

I have a total of 200 users. I have one angular page which has showed 20 users on the present page. Now, I want to find a random user which is in any next pages. I have page navigator button on the ...
2
votes
1answer
119 views

How to Verify the string / text by using Protractor

I want to verify that one screen string value with other screen string value. For example, if I try to select one product from the product list screen, the product detail screen is opened which is ...
1
vote
1answer
140 views

How to attach screenshot to protractor's HTML report?

In my protractor project, i am trying to take an screenshot, and attach it to my html report. The process of taking screenshot is happening in an After hook, as below: import { Status,After, ...
2
votes
0answers
50 views

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

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 seleniumAddress: 'http://localhost:17556/', ...
0
votes
1answer
49 views

how do I define global variable in conf.js and used in spec.js file in jasmine protractor?

describe('Enter Base API URL', function() { it('1st scenario', function() { // Take any URL. browser.get('xyz.com'); browser.ignoreSynchronization=true; var user= by.xpath('//...
1
vote
1answer
127 views

Unexpected alerts from Chrome using Protractor

2 days ago I have started to receive unexpected alerts when leaving the page (actions that change the URL really). (those alerts do not appear in a 'real' browser). I have checked the compatibility ...
1
vote
1answer
49 views

Cucumber Protractor tests is returning 0 scenarios

I was trying to run a sample test in cucumber protractor javascript tests. But it is returning 0 scenarios.Could someone please look into my code pasted below. sample_scenario.feature Feature: To ...
0
votes
1answer
90 views

Get value from element of type <a>

So this is the HTML <ul class="has-status sub-menu"> <!-- ngRepeat: subItem in item.subMenuItems track by subItem.name --> <li ng-repeat="subItem in item.subMenuItems track by ...
1
vote
1answer
130 views

How to structure data driven Protractor/JS tests in page object model?

I am using protractor/js for automating end to end tests for our website. We have a test data set that we have saved in different JS files and we use this data while executing test cases. We are ...
1
vote
2answers
189 views

Maximizing Chrome Window size in Jenkins for Protractor Tests

We are in the process of setting up Jenkins for our testing projects and we are facing a huge challenge for browser window size. The app we are testing is a Progressing app so with the default screen ...
0
votes
1answer
174 views

How to find radio button value and ID with xpath

<rhr-radio-button element-id="tenderValidType" model="$ctrl.additionalData.procProcedure.tenderValidType" value="UNTIL_DATE" label="additionalData.tenderValidUntil" required="::$ctrl.requiredFields[...
1
vote
1answer
45 views

Same element locators under different parents

This is more of a "code review" question but it is very SQA specific so posting it here. There are two different menus on a page: "left" and "right" both containing "save" and "cancel" buttons with ...
1
vote
2answers
68 views

'to.include' is not working where 'to.eventually.equal' is working

I was trying to check whether a string is present in another string. I am using the below code: expect(actualTimeZone).to.include(employee.timeZone); But it is giving the below error: ...
1
vote
2answers
94 views

How to enter acceptable fake data to login page which is tests using protractor?

I am completely new to the protractor and currently, I'm testing my login page using my own login data and I want to use dummy data as profile login data. Can these enter in my spec.ts file or ...
2
votes
1answer
67 views

getText() which is in between <div> </div> tag?

Get text which are in between tags DOM <div id="div_ResultMessage" class="AlertmsgDiv"> <div id="lblSuccessMessage" class="alert alert-success alert-dismissable"> <div ...
1
vote
1answer
259 views

Can Jasmine tests be executed in a specific order?

I believe it is considered to be a bad practice to rely on the order in which the (acceptance) tests should be run, but for testing "deeply nested features" (I don't know if there is a standard term ...
1
vote
3answers
731 views

Element not found error in protractor

I'm new to protractor and trying write a script. But every time I try to locate an element "The Element not found" error is coming. These are the error messages I'm getting. Failed: No element found ...
3
votes
1answer
233 views

Migrating from AngularJS to ReactJS or what to do with existing e2e tests

The Story We have a mission critical AngularJS application which we extensively test with e2e tests using Protractor/WebdriverJS. At the current state, we have ~30000 lines of existing e2e tests ...
0
votes
1answer
212 views

Unable to run protractor script

I'm not able to run my protractor tests. Getting the below error: grunt cltest Running "protractor:singlerun" (protractor) task (node:26770) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. ...
1
vote
1answer
48 views

How can I bypass the mixed content error

I am getting the below error when I was trying to approve a document in a webpage Mixed Content: The page at \'https://example.com\' was loaded over HTTPS, but requested an insecure resource \'http://...
2
votes
1answer
1k views

How to use async/await with Protractor-nodejs8

I am completely new to protractor, and I came across the async/await. Is it necessary to use async/await in all your script. And how to use with page object. Using node version 8.9.4 protractor ...
2
votes
2answers
493 views

Protractor: Iterate through table <td> and click the link by TEXT

Requirement : link is present inside tabel >td>p>a . i want to Click link the link by TEXT (something like contains(Text)) Tried : by.CssContainsText("a","Text") . did not work, as multiple entry ...
0
votes
2answers
237 views

Protractor using Typescript and cucumber

I need to click on 'homebutton' button of a angular website through typescript in protractor and after clicking need to check that i am on homepage of the website. can anybody tell me this?
1
vote
2answers
2k views

Protractor + Jenkins , element not interactable

On my local, I start e2e tests in Protractor and this is good. I have problem when I want start tests on Jenkins job. I pull tests from repo run command npm install run command node_modules\.bin\ng ...
3
votes
2answers
138 views

Protractor Image didnt upload on dialogue box?

I want to test the image upload functionality using Protractor but my written script didn't work. When we click on the dialogue box image it opens the window to select the desired image. After the ...
2
votes
1answer
273 views

ElementArrayFinder.filter() - how does it work under the hood?

In my UI, I have a project tree that contains a list of components that are in a project. Once my current spec is done running I'm calling a page object function to delete all the components to clean ...
2
votes
0answers
106 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 ...
1
vote
0answers
45 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
1k 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
257 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
273 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/...
3
votes
2answers
130 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
297 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 ...
2
votes
2answers
2k views

Scrolling to Bottom of the Text Area using 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 end to end test running on the protractor/...
4
votes
6answers
219 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
487 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
180 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
2answers
88 views
1
vote
3answers
414 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 ...
2
votes
1answer
389 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
1answer
210 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
353 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
2k 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
2k 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) { ...
2
votes
1answer
425 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.