下面是我要自动化的文本区域的html代码:
<div class="large-5 end columns chckOutNote">
<input id="LocationNotes_0__LocationNumber"
name="LocationNotes[0].LocationNumber" type="hidden" value="Location1">
<input id="LocationNotes_0__ServiceProviderName"
name="LocationNotes[0].ServiceProviderName" type="hidden" value="trial">
<input id="LocationNotes_0__WasPreviouslyFilled"
name="LocationNotes[0].WasPreviouslyFilled" type="hidden"
value="False">
<label for="LocationNotes_0__Note"> trial</label>
<br>
<span id="LocationNotes_0__Note">500</span> characters
remaining
<textarea class="counterpart" data-counter-
part="#LocationNotes_0__Note" data-max="500" data-val="true" data-val-
length="The field Note must be a string with a maximum length of 500."
data- val-length-max="500" data-val-required="The Note field is
required."id="LocationNotes_0__Note" name="LocationNotes[0].Note"
rows="10">
</textarea>
</div>
我试图单击该元素,然后通过发送键输入数据,但它抛出一个错误,即找不到该元素的焦点