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

后端 未结 7 2223
南笙
南笙 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 05:53

    For future reference, if others run into this issue, make sure you're only finding one element! Chrome tools can be deceiving sometimes when it comes to this. I re-checked my selector in firePath (firefox add-on) and it turned out that I had two matching nodes, even though chrome tools showed me one element.

    https://addons.mozilla.org/en-US/firefox/addon/firepath/

提交回复
热议问题