<div class="pairing">
<div class="button pair disconnected" hammer-tap="pairing.pair()">disconnected</div>
</div>
<div class="pairing" ng-if="pairing.localAvailable()">
<div class="button pair local" hammer-tap="pairing.pair({ address: '127.0.0.1' })">local</div>
</div>
<div class="pairing" ng-repeat="phone in pairings">
<div class="button pair" hammer-tap="pairing.pair(phone)">{{ phone.label }}</div>
<div class="button unpair" hammer-tap="pairing.remove(phone)">unpair</div>
</div>
<div class="newpairing">
<input ng-model="newpairing" placeholder="IP Address" tabindex="-1" />
<span class="button addpair" hammer-tap="pairing.add(newpairing)">pair</span>
</div>
protractor
protractor copied to clipboard
how to access input button?
Hi,
Thank you for your answer to my previous question with regards to the protractor example not working.
I have a question. In the following snippet, I would like to access the input element and I would like to know if there is a better way of accessing it than the way we are currently doing with protractor. The way we are accessing it is: ptor.findElement(protractor.By.css(".pairing .newpairing input")).sendKeys(DeviceNewparingIP);
Client Pairing
It is really depends on your markup.
For example, if it's an input with an ng-model, you can use:
element(by.input('myModel'));
or you can use ID:
element(by.id('myId'));