Angularjs 如何在量角器测试中选择特定的文本框(使用ng模型)

Angularjs 如何在量角器测试中选择特定的文本框(使用ng模型),angularjs,testing,protractor,Angularjs,Testing,Protractor,Html代码 <li ng-repeat="(i,x) in array"> {{x.title}} <button ng-click="how(x)">Edit</button> </div> <div ng-show="x.show" ng-model='x.form'> <form name="hola"> Darsh: <input type='

Html代码

<li ng-repeat="(i,x) in array">

    {{x.title}} <button ng-click="how(x)">Edit</button>
    </div>
    <div ng-show="x.show" ng-model='x.form'>
        <form name="hola">
            Darsh: <input type='text' ng-model='x.title'>
        </form>
</li>
var elem = element.all(by.repeater('(i,x) in array')).get(1);
 elem.element(by.css('button[ng-click="how(x)"]')).click();
 var title = element.all(by.repeater('(i,x) in array')).get(1);
 title.element(by.model('x.title')).clear();
 title.element(by.id('x.title')).sendKeys('how');