![](/img/trans.png)
[英]How I will get text (GET TEXT) in html which has text and other field in the same tags in Robot Framework?
[英]Not able to clear Text Field in Robot Framework
元素的 HTML 代码如下 -
<input cascadechildren="" class="form-control yearMonthDayFocus cascadeParent hasDatepicker" id="StartDate_10" name="StartDate_10" placeholder="DD-MM-YYYY" type="text" value="20-10-2020">
我使用了以下语句。
Input Text [LOC] ${EMPTY}
Press Keys [LOC] CTRL+a+BACKSPACE
Clear Element Text
Press Keys [LOC] /BACKSPACE
如果您有不同的答案,请告诉我
您没有告诉它要清除哪个元素。 清除元素文本需要定位器。 例如:
Clear Element Text id:StartDate_10
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.