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
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....
1
vote
2answers
7k 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
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
2answers
316 views

How to handle with webdrivers in visual studio code Protractor?

I was getting an error WebDriverError: unknown error: cannot determine loading status from unknown error: missing or invalid 'entry.level' (Session info: chrome=76.0.3809.100) (Driver info: ...
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
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
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 ...
-1
votes
1answer
40 views

How to determine test coverage on a Protractor/Jasmine project

I'm new to a project that is in active development but is a mature application. It has a lot of Protractor/Jasmine tests, but they are organized somewhat poorly. For example, multiple identical or ...
6
votes
2answers
10k 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. ...
4
votes
2answers
869 views

Protractor Image didn't upload on dialog 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 ...
1
vote
1answer
40 views

Is there a way to write protractor tests to test on devices plugged into my pc not via browserstack

we are trying to save some money and have devices here already to test on, is there a way i can setup my tests to run on them ? Thank you in advance
7
votes
2answers
378 views

How expected condition 'isClickable' works in Protractor

I am trying to click a button as defined below: <button _ngcontent-xjt-c6="" class="ef-ui-btn-inline-sm ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" ...
-3
votes
1answer
438 views

Replacement for Protractor in test automation project?

I'm working in a project where I run a lot of end to end tests prepared using Protractor framework - testing dashboard written in Angular JS and Ionic 4 web application. However I started to spot a ...
2
votes
1answer
140 views

Test all checkbox combinations using Protractor

In my Angular page there are 15 checkboxes and a label that when I select on each checkbox individually, a result will appear in the label. Plus when a checkbox click with a combination with others, ...
0
votes
1answer
4k 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 ...
1
vote
2answers
328 views

How to download files in folder other then the download folder using Protractor?

Using the following configuration, files are always saved in the download folder instead of the folder set for default_directory. 'capabilities': { 'browserName': 'chrome', 'chromeOptions': { ...
1
vote
1answer
213 views

Is it possible to test Desktop Applications using Protractor directly or via a third party tool?

I have an application built over angular (new version) and WinForms (legacy) which needs to be automated for testing. I had identified selenium (WinAppDriver + NgWebDriver) as the possible tool for ...
8
votes
3answers
8k views

Cypress vs Protractor for end-to-end testing

I've recently stumbled upon a modern end-to-end testing framework called Cypress which is going to be released in public beta this year. It really looks awesome at the first glance - there are ...
4
votes
2answers
19k 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, ...
0
votes
4answers
278 views

Recommendations on adoption of protractor over selenium for angular app

We currently have automation framework using selenium Webdriver C# bindings .The application under test is being re-written in angular.The QA team is familiar with C# and selenium , so we are ...
17
votes
8answers
64k 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 ...
2
votes
1answer
5k views

Protractor - How to use async/await

I am completely new to protractor, and I came across the async/await. Using: node version 8.9.4 protractor version 5.3.0. Is it necessary to use async/await in all your script? And how to use with ...
1
vote
2answers
926 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 ...
1
vote
1answer
523 views

Protractor - 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
3answers
5k views

Protractor - Element not found

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 ...
3
votes
3answers
2k 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
2answers
3k views

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

Requirement : link is present inside table >td>p>a. I want to click on link by TEXT (something like contains(Text)) Tried: by.CssContainsText("a","Text") . I did not work, ...
3
votes
2answers
316 views
0
votes
1answer
688 views

Protractor - javascript isPresent always returning TRUE

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 has ...
2
votes
3answers
7k 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/...
1
vote
2answers
6k views

Protractor - 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 ...
1
vote
1answer
294 views

Click, hold and drag to the left in Protractor

For my site, I want to click, hold and drag to the left an element, so it appears a trash icon. I don't want to drag to a specific position, but just drag to the left, so I tried to decrease X value, ...
1
vote
2answers
571 views

How to getText concatenating 2 strings in Protractor

I have 2 variables that get the texts: locationDisplayed and bindisplayed. I want the 3rd variable: expectedDescription concats the text of the first 2 vars. Here is the code: let locationDisplayed = ...
2
votes
1answer
406 views

How to do right mouse click in protractor chrome?

After referring to: PROTRACTOR: Right click on link and open in NEW TAB I tried below code : describe('Right click', function () { it('test {Regression} {Sanity} {Sanity}', async ...
0
votes
1answer
570 views

How to get text from an element , when getText fails

I have the following element element(by.css("span[aria-label='Picker ID, TESTUSER']") I want to assure the text on this filed is TESTUSER, so I tried: expect(element(by.css("span[aria-...
2
votes
2answers
4k views

How to query the Canvas using Selenium with JavaScript Executor or Protractor?

I like to know if it's possible to automate this 'graph' which is created on the canvas, if yes, how to automate it. I have to interact with all the elements on the 'graph or a map like thing' by ...
1
vote
1answer
269 views

Get variable in conf.js and use it through spec files

This is what I have in protractor.conf.js: let localNodeStorage = require('./helpers/localStorageNode'); exports.config ={onPrepare: async () => { require('ts-node').register({ ...
2
votes
1answer
2k views

How to access step definition variables using hooks.js

Hi in the below protractor-cucumber step-definition, I can modify the step definition variable a from before hook: "use strict"; let { Given, Before } = require('cucumber'); ...
10
votes
2answers
551 views

Data driven testing using csv in Protractor

I am trying to run data-driven testing using csv file in protractor: I have created a read csv promise module: let readSync = async function (path1) { console.log(path1) const csv = ...
2
votes
1answer
146 views

Integrating Protractor to Octopus deployment (CI/CD Integration)

I have a batch file with below content: %1 %2 --params.validFile=%3 --params.invalidFile=%4 I am starting it through power shell script: $path= "<filePath>\start.bat" $...
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
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 ...
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. ...
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://...
0
votes
2answers
79 views

User Acceptance Tests with mouse/keyboard capture and picture compare

We have several Angular applications (Micro UIs) and they are all 100% covered by our UATs (User Acceptance Tests) written with Protractor (Angular Test Framework based on Selenium). There are ...
5
votes
1answer
116 views

Protractor console logs when run with directConnect:True

When the config file is executed with directConnect:True flag, I am getting console logs that show more errors about my angular application. When directconnect flag is removed, there are no warning ...
1
vote
2answers
915 views

Script timeout in Protractor

My current scenario is: the user types the username, password, and click on the login button. Then, the next screen shows a list box with Stores to login. Protractor loads this list box but it does ...

1
2 3 4 5