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/

Protractor is an end-to-end test framework for and applications built on top of .

Protractor can be run as a standalone binary runner, or included into tests as a library.

Resources

11334 questions
256
votes
5 answers

toBe(true) vs toBeTruthy() vs toBeTrue()

What is the difference between expect(something).toBe(true), expect(something).toBeTruthy() and expect(something).toBeTrue()? Note that toBeTrue() is a custom matcher introduced in jasmine-matchers among other useful and handy matchers like…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
160
votes
5 answers

WebDriver click() vs JavaScript click()

The Story: Here on StackOverflow, I've seen users reporting that they cannot click an element via selenium WebDriver "click" command and can work around it with a JavaScript click by executing a script. Example in Python: element =…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
152
votes
7 answers

How to import js-modules into TypeScript file?

I have a Protractor project which contains such a file: var FriendCard = function (card) { var webElement = card; var menuButton; var serialNumber; this.getAsWebElement = function () { return webElement; }; …
SanchelliosProg
  • 2,091
  • 3
  • 20
  • 32
126
votes
34 answers

How to select option in drop down protractorjs e2e tests

I am trying to select an option from a drop down for the angular e2e tests using protractor. Here is the code snippet of the select option: