Getting Element is not clickable exception while click on a menu link

前端 未结 2 1408
栀梦
栀梦 2020-12-07 03:46

I am trying to click on a menu link but not have any luck. It always showing exception -

Exception in thread \"main\" org.openqa.selenium.WebDriverExc

2条回答
  •  春和景丽
    2020-12-07 03:48

    I had the same problem and tried many solution but it didn't work.Lastly i saw selenium docs and found stalenessof

    new WebDriverWait(driver, 10).until(ExpectedConditions.stalenessOf(findElement(By.xpath("element_path"))));
    

    It should work now.

提交回复
热议问题