Debugging “Element is not clickable at point” error

后端 未结 30 2173
余生分开走
余生分开走 2020-11-21 23:55

I see this only in Chrome.

The full error message reads:

\"org.openqa.selenium.WebDriverException: Element is not clickable at point (411, 675

30条回答
  •  时光取名叫无心
    2020-11-22 00:18

    ruby/watir-webdriver/chrome

    I use the following trick and seems like it works:

    #scroll to myelement
    @browser.execute_script "window.scrollTo(#{myelement.element.wd.location[0]},#{myelement.element.wd.location[1]})"
    
    # click myelement
    myelement.when_present.fire_event("click")
    

提交回复
热议问题