Selenium sendKeys are not sending all characters

前端 未结 7 1696
面向向阳花
面向向阳花 2021-02-02 15:29

I\'m using Java, Selenium, and Chrome for test automation. Our developers recently upgraded our UI from AngularJS to Angular2 (not sure if that matters). But since then, sendKey

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-02 16:22

    i had the same problem, if you see it carefully selenium is changing the characters, some numbers perform a backspace or other symbols, i read it happens when using selenium with vncserver, i changed to firefox.... and it worked.

    if that's not your problem, maybe sending the data in parts:

    input1="Joh201605130947AM"
    txtFirstName.sendKeys(input1[0:7])
    txtFirstName.sendKeys(input1[8:end])
    

提交回复
热议问题