From 132b5dd80194ae31711294587211e2115cb842fa Mon Sep 17 00:00:00 2001 From: anibalsanchez Date: Sun, 7 Jan 2018 20:14:46 +0100 Subject: [PATCH] Locator by.name('field_name') --- docs/locators.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')