Questions tagged [protractor]

Protractor is an end-to-end test framework for Angular and AngularJS applications built on top of WebDriverJs. Protractor can be run as a standalone binary runner or included in your tests as a library. Use Protractor as a library if you would like to manage WebDriver and your test setup yourself. Find more on http://www.protractortest.org/#/ and https://github.com/angular/protractor/

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Running protractor e2e with custom build and serve configuration

I have Angular : 8 Protractor: 5.4 Added configurations for build in angular.json project:build:e2e and Serve configuration project:serve:e2e For E2E testing using below command we would like to ...
RadiumBall's user avatar
0 votes
0 answers
11 views

Angular E2E Protractor testing : error to join API from testing session

For an Angular application, I'm creating E2E Tests from Protractor and Jasmine. All feel good except the externals API calls. For example, if I try to test and simulate login, the form will correctly ...
Gati's user avatar
  • 5
1 vote
0 answers
126 views

Protractor: Webdriver-manager update downloads an incompatible version of chromedriver

Chrome Browser version in my machine 116.0.5845.111 (Official Build) (64-bit). But Webdriver manager downloads chromedriver_114.0.5735.90. Error: E/launcher - session not created: This version of ...
user8015092's user avatar
0 votes
0 answers
264 views

webdriver manager update only to chrome driver version 114

I am still using protractor for automated testing. I got the latest chrome driver version 116 and chrome browser version 116. I tried running npx @puppeteer/browsers install chrome@stable to get the ...
Allisona's user avatar
  • 119
1 vote
1 answer
447 views

My chrome version got updated automatically to 115 version and when i run webdriver-manager update command why its downloading 114 version of chrome?

My chrome version got updated automatically to 115 version and when i run webdriver-manager update command why its downloading 114 version of chrome? Even i tried to download 115 version directly and ...
Agrawal Divesh's user avatar
0 votes
0 answers
18 views

Vscode keep running tests or run on save [duplicate]

I am using VS Code in order to fix a lot of UI tests. They are written in TypeScript with protractor and jasmine. I am running the tests using a launch.json file for these tests. What I want is to run ...
Tom Carmi's user avatar
  • 385
0 votes
1 answer
48 views

Access AngularJS's scope in Playwright (migration from protractor)?

i'm facing a small (i hope) issue, for personal purpose i need to migrate from protractor to playwright, i add a lot of steps working well without any issues, but now i'm stuck, the migrate protactor'...
fqdr's user avatar
  • 1
-1 votes
1 answer
24 views

Difference b/w running test cases in angular frameworks vs the compiler default?

Diff b/w running angular testing in jasmine / karma etc vs doing it in the ng serve when the project gets saved & compiled automatically. Why is there a need for the testing Framework in angular ...
Niharika Gurnani's user avatar
1 vote
0 answers
21 views

Is there a way to get the jasmine report without actual execute cases?

I'm using jasmine framwork and want to get a jasmine report without actually execute cases. It should be something similiar as the 'dry run' in mocha framework. And in the report, i want to get the ...
claire's user avatar
  • 13
0 votes
0 answers
13 views

Jenkins not running a few protractor tests

I have a project I’m working on in which I have a set of protractor tests to run and for some reason a few of the tests I have written are not showing up in the allure report Jenkins gives me after ...
chess Mac's user avatar
1 vote
0 answers
96 views

Can't run protractor tests with selenium hub 4

I am trying to run my protractor tests using a selenium hub. I follow the official selenium hub instructions to run it using docker. Basically the commands are as follows: After that, I change the &...
pmpli's user avatar
  • 121
1 vote
2 answers
293 views

How to capture scenario result in cypress-cucumber-preprocessor?

I am Migrating Protractor Cucumber framework to Cypress using cypress-cucumber-preprocessor I need to capture Scenario run result -pass or fail value also the scenario name Earlier with cucumber,the ...
Sagarika's user avatar
0 votes
0 answers
21 views

Protractor:Chrome driver download failed because api blocked by my company

I want to download chrome and run full testing on a server. I am running E2E testing on a server but during this command npm install webdriver-manager update --ignore_ssl --version.chrome =112.1223....
Sagar Tripathi's user avatar
0 votes
1 answer
20 views

how to re-use same IT blocks in multiple spec files

in protractor, i have 20 tests (IT block) in a spec file. and we have few different spec files only the difference between each spec file is before block. Spec A Spec B Spec C so, 20 tests from Spec A ...
L V Prasad's user avatar
0 votes
0 answers
22 views

Why, with Protractor/WebDriverIO/..., does an element has to be visible to click on it?

I'm migrating tests written in Protractor to WebDriverIO and I noticed some tests fail because an element is not "visible" when "I" (the test) want to click on it. Why is that? ...
Fanfoue's user avatar
  • 61
1 vote
1 answer
148 views

Getting page content via XMLHTTPRequest

I am using Protractor for my testing. I have 100 links on a page, rather than clicking on each link and checking the page content I am trying to get the page content via XMLHTTPRequest. I am passing ...
Zeus's user avatar
  • 166
0 votes
1 answer
145 views

How to get the value of Element that is Disabled and not present in DOM

I am using Protractor for Automation. I am trying to verify value of element present in the model window. the element is disabled (greyed out) and not present on the DOM. How to get the value of this ...
Sagarika's user avatar
1 vote
1 answer
46 views

Testing Angular - How can I test disabled field using Selenium Protractor?

In MEAN stack project I am using Selenium webdriver for frontend UI testing. I have a field which is non editable. I have attached an image Image How can I test this field making sure it cannot be ...
Hiyanneri's user avatar
0 votes
0 answers
31 views

How to get array values from another page object in Protractor?

I am new to protractor and I'm struggling to get the array values from the "solutions.js", so that I can use the function in "tools.js" to check that the values from "main.js&...
ronsic's user avatar
  • 205
1 vote
0 answers
33 views

Chrome is not launching when i execute protractor code in jenkins while doing automation testing

When I try to run protractor code in jenkins , chrome browser is not launching but the code is executing in jenkins and it is printing failure.Can i know how to launch the chrome browser so that my ...
jaishree r's user avatar
0 votes
0 answers
21 views

Cucumber.js/Protarctor/Node.js which debug configuration to setup for Protractor cucumber framework

I am trying to debug a protractor cucumber framework scripts but unable to do so. If I setup the configuration for Protractor as per https://www.jetbrains.com/help/idea/protractor.html I'm getting an ...
Athul's user avatar
  • 1
0 votes
0 answers
90 views

Parsing error: Cannot read file tsconfig.json

spec.ts file I wanted to do testing using protractor and wrote spec.ts test files but when i run it i got import error then I noticed the spec.ts file have the error and even at every import in every ...
Aman Syed's user avatar
0 votes
2 answers
133 views

How to config chromdrive to download in protractor?

I got error of chromedriver version is only support google chrom version 100. My current google chrome is 109 Current browser version is 109.0.5414.119 with binary path /usr/bin/google-chrome [13:12:...
Thi Hien Pham's user avatar
0 votes
0 answers
92 views

Hidden input elements in typescript I made the element style to 'block' from 'none' after uploading its not finding the other element to click

to upload file in the hidden input I changed the style into 'block' and used the following javascript: await this.getBrowser().executeScript('return arguments[0].style.display = "block"' , ...
Jansi Victor's user avatar
0 votes
1 answer
45 views

Delay after downloading a file in Protractor test

My test downloads a file and then clicks a button. The click on the button takes effect (opening a sidebar) 40 secs after. If I disable the downloading code in the app (making the bottom download bar ...
Fanfoue's user avatar
  • 61
0 votes
0 answers
27 views

Reusable code for multiple describe() in the same spec file

Since I need to have different beforeAll() and beforeEach() implementations for different tests within the same spec file, I have decided to have two describe() within the spec file. However, there ...
Dexter Fung's user avatar
1 vote
1 answer
23 views

Protractor : Even though the toggle is ON/OFF, my code always returning false value

I am using protractor to automate web UI. I need to verify If the toggle is ON, it should return True and it should come out from the loop, If it False it should enable the toggle. Below is the image ...
Sonam kumari's user avatar
0 votes
0 answers
39 views

vscode/protractor unbound breakpoints

I'm trying to debug a Protractor e2e test of an Angular application. I want to start from the e2e test and stop in the application. I set a breakpoint in the e2e test and one in an Angular component (...
Fanfoue's user avatar
  • 61
0 votes
1 answer
368 views

Playwright equivalent to Protractor's browser.wait to loop while condition is not met

I'm trying to find a way to loop in Playwright while certain condition is not met. In Protractor I could use browser.wait. In the following example which I'm migration from Protractor to Playwright, ...
Tedi's user avatar
  • 426
0 votes
1 answer
111 views

Test users password- static or dynamic

During our e2e testing, 100+ test users are created on our application. Workflow goes like this: 1. Generating a random password with faker library 2. Storing it in a variable 3. Using the variable to ...
mark_Ruff's user avatar
0 votes
0 answers
11 views

How we get to know where our file in downloading if we are running tests on remote (Protractor+Javascript)

How we get to know where our file in downloading if we are running tests on remote (Protractor+Javascript).. After clicking on a download button and running tests on remote, i have to save the ...
user3863268's user avatar
0 votes
1 answer
43 views

Using protractor to set dropdown box on kendo dropdownlist

I have the following HTML: It is a kendo dropdown box with three options. <select class="login" id="CompanyId" name="CompanyDisplayList" data-role="dropdownlist&...
DanCode's user avatar
  • 535
1 vote
1 answer
271 views

Automatically disable browser cache in chrome while running tests using protractor

I am trying to run tests using protractor but i need to disable the browser cache in order to test some things. I do not want chrome to load the resources from browser cache instead i want it it to ...
Mohan Annasamy's user avatar
0 votes
1 answer
22 views

how to trigger mouse wheel click with protractor

I'm testing an Angular 14 app with protractor 7 e2e tests. I want to emulate a middle mouse (wheel) click on an element. How do I do this ? Thanks. (A different solution using Webdriver, pure ...
Fanfoue's user avatar
  • 61
0 votes
2 answers
151 views

QA Testing automation tools to learn: Selenium, Protractor, Cypress

I have some programming experience and want to switch to QA roles that suit my skills better, I have more knowledge of Java but some Python. I am wondering if I should focus on Selenium that I have ...
Sumit M's user avatar
0 votes
0 answers
16 views

How to protractor-html-reporter-2' package to generate html report with specs name

above question concept, I want to multi-specs after execution, And I wanted to see test suites with that test suites spec name also in the generated Html report
Manian Karthik's user avatar
0 votes
1 answer
57 views

Why protractor deprecated in jhipster?

I am curious to understand why jhipster 7.8.1 deprecated the protractor. Is there roadmap to include any other end-to-end testing framework?
Ranjith Raj D's user avatar
1 vote
0 answers
239 views

Cucumber report does not get updated after Parallel execution of feature files in Protractor+Typescript framework

enter image description hereBelow is my config.ts file. I have done below configuration to suffice parallel execution of feature files. However after execution the cucumber report fails to get updated ...
dggadhia's user avatar
0 votes
0 answers
57 views

Protractor in Jenkins docker container

I am trying to integrate protractor with jenkins i have installed the protractor packer and webdrivers inside my jenkins container but while running conf.js I am not able run the test case. please ...
Vasantha's user avatar
0 votes
1 answer
35 views

Trying to getCurrentUrl() and open it in new tab in protractor

I have to get the url and open it in 3 new tabs. But I get errors while trying: browser.getCurrentUrl().then(url => { browser.actions().keyDown(protractor.Key.CONTROL).sendKeys('t').perform(...
Arash Ghasemi's user avatar
1 vote
0 answers
18 views

Protractor in vscode - how to display the element content in the debug?

I am running protractor/typescript in vscode. I open "JavascriptDebugTerminal and run with "npm start". The deubug seems ok but all element variables seems similar in the debug window. ...
R_B's user avatar
  • 41
1 vote
1 answer
55 views

Mocha test isn't running properly in loops

I have a JSON with every key containing an array of strings, I added two loops One to get all keys Second to get array against keys I'm using my second loop to test each value in array. But what is ...
Atabic Umer's user avatar
3 votes
2 answers
416 views

Is there any way in cypress to wait for multiple expected conditions

So I am trying to migrate our existing protractor test suite to cypress. For one of the tests, we have scenario where we can have two expected conditions which easier to handle in protractor. But I ...
Aspiring Coder's user avatar
0 votes
1 answer
325 views

TypeError: Cannot read properties of undefined (reading 'statusCode')

After some tests in protractor - typescript - cucumber framework, I use this function: Before({ tags: "@Cleanup" }, async function () { const JSESSION = await browser.manage().getCookie('...
stackdev's user avatar
0 votes
1 answer
82 views

How to get element with its style attribute in protractor?

i am new to use protractor. There is an html element which its only unique part is url of background image in style attribute. You can see below. <div _ngcontent-jaf-c293="" class="...
aborted's user avatar
  • 59
1 vote
3 answers
610 views

Programmatically check if lazy-loading works

In Angular, it is quite easy to break lazy-loading. For example, all it takes is for someone to carelessly import something from a lazy-loaded module into the app module and this module is eagerly ...
georg-un's user avatar
  • 1,123
0 votes
0 answers
126 views

Unable to give input in phone number textbox in SafariIOS Simulator

I have scenario where I need to enter phone number in text box field, using SafariIOS simulator but am getting invalid phone number error even through number is not inputting. Can someone please help ...
raj's user avatar
  • 1
1 vote
2 answers
362 views

"Undefined. Implement with the following snippet" protactor cucumber

Currently learning protractor, I am doing this parameter scenario where I want to the change the type of operation done in every run my steps const { Given, Then } = require('cucumber'); const { ...
Manu's user avatar
  • 75
0 votes
1 answer
54 views

Protractor unit tests Angular does not work with MediaRecorder

I have an Angular 11 project and I have unit tests implemented. Recently, I added a MediaRecorder in the project, and none of the tests run anymore. The tests "compilation" throws the ...
pokeRex110's user avatar
-1 votes
1 answer
33 views

Protractor doesn't start tried all the solutions given on internet

Below are my env details: OS : win 10 64 bit npm version - 5.3.0 node version - v8.3.0 webdriver-manager version - chromedriver: 103.0.5060.53, 104.0.5112.29 (latest) geckodriver: 0.31.0 (latest) ...
Syed Saddam Hussain's user avatar

1
2 3 4 5
227