Robot Framework web自动化测试Input输入框内容清空

方法:

通过Selenium2Library下Press Key关键字定位input输入框后按退格键逐个清除输入框内容

具体实现:

  1. 页面input输入框
    Robot Framework web自动化测试Input输入框内容清空
  2. 编写清除内容关键字
    Robot Framework web自动化测试Input输入框内容清空
  3. 调用关键字
    Robot Framework web自动化测试Input输入框内容清空

代码:

argument ${locator} | ${count}
FOR ${i} IN RANGE ${count}
Press Key ${locator} \8

参考:

https://blog.csdn.net/DaxiaLeeSuper/article/details/78903375

相关文章:

  • 2021-10-28
  • 2022-01-08
  • 2022-01-15
  • 2021-08-01
  • 2022-01-17
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-08-05
  • 2021-10-14
相关资源
相似解决方案