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
4
votes
1answer
56 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 ...
3
votes
2answers
609 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
2answers
662 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 ...
2
votes
2answers
928 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
2answers
46 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 ...
4
votes
1answer
95 views

How expected condition 'Isclickable' works in protractor

I am trying to click the below button element: <button _ngcontent-xjt-c6="" class="ef-ui-btn-inline-sm ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" ...
1
vote
1answer
27 views

Hooks not getting executed in protractor cucumber

I new to protractor, and trying to implement hooks. But the hooks are not getting executed. Following is my code: Hook.js: const { Before } = require('cucumber'); const {AfterAll} = require('...
3
votes
0answers
586 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 ...
0
votes
1answer
21 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
0
votes
1answer
578 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', ...
3
votes
1answer
1k views

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

In the same page how to switch from non-angular to angular, it is clicking on non-angular elements but not on angular, when clicking on non-angular lookup then angular window(Popup) will open
3
votes
0answers
882 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
177 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
1answer
1k 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 ...
3
votes
0answers
247 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/', ...
3
votes
1answer
1k 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 ...
0
votes
1answer
45 views

What is the meaning of test runner? What is the meaning of test runner in layman terms? [closed]

What is the meaning of test runner? Protractor is a test runner. What is the meaning of test runner in layman terms?
4
votes
2answers
14k 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, ...
1
vote
3answers
6k 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 ...
3
votes
2answers
145 views

how can i modify html report so that i can print passed and failed test case name in html report in jasmine framework?

I want to print a custom message with passed, Thanks in advance
3
votes
2answers
5k views

ChromeDriver : driver failed to parse value of getElementRegion - understanding the error

The chrome on my office Mac machine recently updated to 76+. Since then one of the tests, written in Protractor and CucumberJS, started failing to cite this error - WebDriverError: unknown error: ...
0
votes
1answer
26 views

Getting undefined when I define {string} parameter in the when section in the step definition in protractor cucumber

I am new to protractor with cucumber. I have to automate a flow wherein on entering first name, last name, and postcode, a new user is created. I am trying to add the data to be entered in the feature ...
0
votes
1answer
29 views

How to switch the driver session between mobile and webbrowser sessions

Here i have a scenario to test the following iam posting some content from the web channel and want to cross verify the same in the mobile app version vice versa
0
votes
2answers
534 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 ...
2
votes
3answers
5k 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/...
0
votes
1answer
58 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 ...
4
votes
2answers
99 views

Run multiple protractor scripts in one action?

I have my protractor scripts running. But on my current scenario, to run the tests it is needed to run each .js individually. I want to pack all the test files into one or pack all the test files into ...
2
votes
3answers
52 views

Is there a way to capture Jasmine assertions?

Is there a way to capture expect failures in Jasmine? This doesn't work, the exception is not captured. try { expect(1).toBe(3) } catch (e) { } I am looking for something like this TestNG ...
0
votes
1answer
649 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
38 views

Click in Protractor is too fast

After clicking on a button, a dialog for confirming should be displayed at the bottom of the page. But Protractor clicks too fast on this button, that the next page is loaded without displays the ...
3
votes
1answer
63 views

How draw a straight line in canvas using protractor

Context: I want to test a signature canvas field So i want to draw a signature and then validate that signature is displayed on the canvas. Right now i cannot even draw a proper line , so wanted to ...
1
vote
4answers
8k 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
1answer
43 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. The following code below passes but does nothing. I don't want to drag to a specific position, but just ...
1
vote
2answers
96 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: ...
10
votes
2answers
377 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 = require('csv-...
0
votes
1answer
45 views

Protractor does not load the page correctly

After clicking on the confirmation button, the next screen should display a confirmation message. But protractor just loads the page without display this confirmation. The strange thing is that I have ...
2
votes
1answer
44 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 function () { ...
2
votes
2answers
2k 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, ...
0
votes
1answer
23 views

Simulate press hard key in protractor

I am using Protractor for testing my web application. During the use of the app, I want to press a hard key on the device, like the home screen, then the app will be minimized and I will see the ...
14
votes
8answers
58k 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 ...
19
votes
4answers
21k views

Moving from Selenium to Protractor

I have been using Selenium/Java/Maven for functional automation testing in my project. But since angular is getting a lot of popularity, the development team has started using it for the development ...
3
votes
1answer
397 views

How to interact with ngx-monaco-editor

I have a web page that has the ngx-monaco-editor implemented in angular. But i am not able send any data to the editor using sendKeys() . I tried replacing textContent of the div element but it just ...
0
votes
2answers
387 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?
0
votes
1answer
535 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
2answers
57 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 ...
0
votes
0answers
14 views

Run protractor in a mobile setup

I want to run protractor tests in a mobile setup. This is the capabilities of my config file capabilities: { browserName: 'chrome', platformName: 'Android', platformVersion: '7.0', ...
3
votes
1answer
274 views

How to open Edge browser in protractor for edgeHTML version 18

I tried all the solutions that are mentioned, but I am not able to get Microsoft Edge (HTML version 18) in Windows 10. I downloaded the web driver using the below command on my personal PC and copied ...
1
vote
1answer
34 views

E2E Test application flow on multiple devices

Our applications flow start on desktop. At later phase there are some scenarios where the processes require an approval on a touch device. The user waits at a page on desktop. If the user opens the ...
1
vote
1answer
33 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 / ...
0
votes
1answer
138 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-label='...

1
2 3 4 5