Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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