方法:
通過Selenium2Library下Press Key關鍵字定位input輸入框後按退格鍵逐個清除輸入框內容
具體實現:
- 頁面input輸入框
- 編寫清除內容關鍵字
- 調用關鍵字
代碼:
- argument ${locator} | ${count}
- FOR ${i} IN RANGE ${count}
Press Key ${locator} \8
參考:
https://blog.csdn.net/DaxiaLeeSuper/article/details/78903375