alibaba / macaca

Automation solution for multi-platform. 多端自动化解决方案
https://macacajs.github.io
MIT License
3.16k stars 418 forks source link

Input输入框type="number"时,sendKeys()无效 #983

Closed weiwentao518 closed 3 years ago

weiwentao518 commented 3 years ago
Error: [element.sendKeys("10011")] Error response status: 13, UnknownError - An unknown server-side error occurred while processing the command. Selenium error: Cannot set the selection end

报错An unknown server-side error occurred while processing the command. Selenium error: Cannot set the selection end

input的type改为text就好了,请问怎么解决

macaca-bot commented 3 years ago

This is the translated issue:


Input when the input box type = "number", sendKeys () is invalid

` Error: [element.sendKeys ( "10011")] Error response status: 13, UnknownError - An unknown server-side error occurred while processing the command Selenium error:. Can not set the selection end `

Error An unknown server-side error occurred while processing the command Selenium error:. Can not set the selection end

The input type to text like, ask how to solve

weiwentao518 commented 3 years ago

sendKeys改用formInput即可

macaca-bot commented 3 years ago

This is the translated issue comment: @weiwentao518


sendKeys can use formInput