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

Commit

Permalink
fix(website): Locator by.name('field_name') (#4653)
Browse files Browse the repository at this point in the history
  • Loading branch information
anibalsanchez authored and qiyigg committed Jan 8, 2018
1 parent 02746dd commit 83e2ba8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/locators.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ A locator tells Protractor how to find a certain DOM element. Protractor exports

```js
// Find an element using a css selector.
by.css('.myclass')
by.css('.myclass')

// Find an element with the given id.
by.id('myid')

// Find an element using an input name selector.
by.name('field_name')

// Find an element with a certain ng-model.
// Note that at the moment, this is only supported for AngularJS apps.
by.model('name')
Expand Down

0 comments on commit 83e2ba8

Please sign in to comment.