alibaba/macaca

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

weiwentao518 opened this issue · 3 comments

  • Macaca Version:
    "macaca-cli": "^2.1.10",
    "macaca-datahub": "^2.5.3",
    "macaca-electron": "^5.0.1",
    "macaca-wd": "^3.3.0"

  • Macaca Doctor Logs:

  • Operate System:
    Mac OS 10.15.5

  • Programming Language:
    JS VUE

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就好了,请问怎么解决

This is the translated issue:


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

  • ** Macaca Version **:
    "Macaca-cli": "^ 2.1.10",
    "Macaca-datahub": "^ 2.5.3",
    "Macaca-electron": "^ 5.0.1",
    "Macaca-wd": "^ 3.3.0"

  • ** Macaca Doctor Logs **:

  • ** Operate System **:
    Mac OS 10.15.5

  • ** Programming Language **:
    JS VUE

` 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

sendKeys改用formInput即可

This is the translated issue comment: @weiwentao518


sendKeys can use formInput