getting cannot focus element in chrome and edge using java/selenium

后端 未结 7 2186
南笙
南笙 2020-12-06 05:26

I am getting a cannot focus element error when running my test in chrome and edge in FF it works fine. I have tried posted resolutions but to no avail. I am not sure wha

相关标签:
7条回答
  • 2020-12-06 06:09

    I Found very important code while reading "Action class" code.

    "Action class" Works because of

    actions.click()  
    

    ?!?

    .

    Try Just putting

    element.click()
    

    before

    element.sendKeys()
    

    in your existing code.

    click() method makes element focused!!~~ THX for every senior

    0 讨论(0)
提交回复
热议问题