【问题标题】:Not able to clear Text Field in Robot Framework无法清除机器人框架中的文本字段
【发布时间】:2020-10-21 05:15:49
【问题描述】:

元素的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

如果您有不同的答案,请告诉我

【问题讨论】:

标签: python robotframework


【解决方案1】:

您没有告诉它要清除哪个元素。 Clear element text 需要定位器。例如:

Clear Element Text  id:StartDate_10

【讨论】:

    猜你喜欢
    • 2016-11-15
    • 2018-07-20
    • 2019-04-30
    • 1970-01-01
    • 2023-02-03
    • 2021-07-28
    • 2017-10-11
    • 1970-01-01
    • 2015-10-09
    相关资源
    最近更新 更多