Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 27486

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.

2 votes
0 answers
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. …
  • 395
1 vote
1 answer
934 views

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

To run an E2E protractor test for this process I wrote wrote the following code: it("should register the user", () => { page.getInputFields().userEmailInput.sendKeys("amin.kasbi@ic-consult.de"); … submitForm') ).click(); So, this workaround works and I get the confirmation email in my inbox, but in the other hand the test on Terminal throws the following error: - Failed: Error while waiting for Protractor
  • 395
1 vote
1 answer
4k views

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

But the test failed and I keep getting the following error: 1) user-app App should not login with wrong username and wrong password - Failed: Error while waiting for Protractor to sync with the page …
  • 395
0 votes
1 answer
682 views

Why does Selenium suddenly skips all my tests?

[10:44:40] I/update - chromedriver: file exists /Users/userName/demoapp/30_04/test-app/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.38.zip [10:44:40] I/update - chromedriver … : unzipping chromedriver_2.38.zip [10:44:41] I/update - chromedriver: setting permissions to 0755 for /Users/userName/demoapp/30_04/test-app/node_modules/protractor/node_modules/webdriver-manager/selenium …
  • 395
2 votes
1 answer
1k 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. …
  • 395
0 votes
Accepted

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

The issue is fixed.. here is what I had to change/add in order to run the test without error or failure. ... browser.wait(protractor.ExpectedConditions.elementToBeClickable( element( by.name('submitF …
  • 395
1 vote
2 answers
565 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 …
  • 395
1 vote
2 answers
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 acc …
  • 395
3 votes
Accepted

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

The following posting was helpful and also the protractor doc where it's explaining the property: params?: any; …
  • 395
4 votes
2 answers
4k views

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

I have been reading few postings here and found some interesting ideas and hints... also regarding Protractor etc. but I'am somehow confused. … Does it mean that we should either use selenium or Protractor and can't use them both where Protractor wraps WebDriverJS I would like first start with installing, using selenium and might then use Protractor
  • 395
1 vote
Accepted

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

Issue fixed. I think this posting here is really too old and just doesn't work as it should be. First of all here is the one which would run without issues, and you also find the comments which explai …
  • 395
2 votes
1 answer
3k 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. T …
  • 395