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

11305 questions
196
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
  • 414,977
  • 106
  • 935
  • 1,083
138
votes
4 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
  • 414,977
  • 106
  • 935
  • 1,083
124
votes
1 answer

Should I be using Protractor or Karma for my end-to-end testing?

Should I be using Protractor or Karma for my end-to-end testing? Angular-seed is using Protractor/Selenium WebDriver for E2E but the angular-phonecat tutorial uses karma. I read that I should use Karma for unit tests and Protractor for E2E, which…
screenm0nkey
  • 16,975
  • 17
  • 53
  • 75
124
votes
33 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: