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

Commit 83e2ba8

Browse files
anibalsanchezqiyigg
authored andcommitted
fix(website): Locator by.name('field_name') (#4653)
1 parent 02746dd commit 83e2ba8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/locators.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ A locator tells Protractor how to find a certain DOM element. Protractor exports
1919

2020
```js
2121
// Find an element using a css selector.
22-
by.css('.myclass')
22+
by.css('.myclass')
2323

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

27+
// Find an element using an input name selector.
28+
by.name('field_name')
29+
2730
// Find an element with a certain ng-model.
2831
// Note that at the moment, this is only supported for AngularJS apps.
2932
by.model('name')

0 commit comments

Comments
 (0)