diff --git a/docs/locators.md b/docs/locators.md index 069eb7d4c..6b6493a40 100644 --- a/docs/locators.md +++ b/docs/locators.md @@ -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')