I am attempting to modify the text of the input element, but I am having trouble identifying it. The element does not have an id or any other distinguishing characteristic. Additionally, this same object is repeated multiple times in the code, making it difficult to target using model information.
However, there is another "childobject" within the same parent object that does have an id. Here is a snippet of the code illustrating my dilemma:
<field ... class="testClass">
<field ... class="smallTestClass">
<div class="ng.scope">
<input ng-model= "vm.ItemInfos[xIndex][yIndex]" >
</div>
</field>
<label ... id="21"/>
<field>
I am trying to update the value of the "input" element, but I am unable to locate the element.
var child = parent.element(by.xpath('//input[@ng-model= "vm.ItemInfos[xIndex][yIndex]"');
Even with this syntax, it only captures the first occurrence and does not consider the parent structure.
Your assistance would be greatly appreciated. Thank you in advance.