Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
chore(website): more protractor vs vanilla wd documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelin committed Jun 30, 2015
1 parent 7e8d4fd commit 47d0ea5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/webdriver-vs-protractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,26 @@ tests.

If you need the vanilla WebDriver `browser` object, you can access it via
`browser.driver`

Using ElementFinders
--------------------

In Protractor, you use the `element` function to find and interact with elements
through an `ElementFinder` object. This extends a WebDriver `WebElement` by
adding chaining and utilities for dealing with lists. See
[locators#actions](/docs/locators) for details.

Jasmine Integration
-------------------

Protractor uses [`jasminewd`](https://github.com/angular/jasminewd), which
wraps around jasmine's `expect` so that you can write:
```js
expect(el.getText()).toBe('Hello, World!')
```
Instead of:
```js
el.getText().then(function(text) {
expect(text).toBe('Hello, World!');
});
```

0 comments on commit 47d0ea5

Please sign in to comment.