我是使用 Protractor 进行楼宇自动化的新手。
您能帮我确定我可以使用哪个定位器来捕获量角器测试中的文本框字段元素吗?
下面是我从 Firebug 捕获的 HTML:
input class="input ng-pristine ng-valid" type="text" ti-autosize="" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ng-class="{'invalid-tag': newTag.invalid}" ng-trim="false" ng-paste="eventHandlers.input.paste($event)" ng-blur="eventHandlers.input.blur($event)" ng-focus="eventHandlers.input.focus($event)" ng-keydown="eventHandlers.input.keydown($event)" ng-change="eventHandlers.input.change(newTag.text)" ng-model="newTag.text" placeholder="20 numbers remaining" style="width: 135px;" spellcheck="true"