Executing Javascript elementFromPoint through Selenium driver

前端 未结 3 1942
暗喜
暗喜 2021-01-15 02:28

I am trying to implement an \"object picker\" to my Selenium based framework as is common on most commercial automation tools. To do this I am using a Javascript command to

3条回答
  •  有刺的猬
    2021-01-15 03:11

    I was having this issue as well. The reason it was being thrown I found out was because the element I was trying to get the location of was hidden (had the attribute display:none). And therefore didn't have a location.

提交回复
热议问题