org.openqa.selenium.StaleElementReferenceException: element is not attached to the page document while iterating through a List

后端 未结 2 1256
生来不讨喜
生来不讨喜 2021-01-27 23:58

I don\'t know why this error shows up . Need help to fix it . Website i am working on :\"http://freevideolectures.com/Course/3680/Pentaho-BI\" . In this site

Li         


        
2条回答
  •  时光取名叫无心
    2021-01-28 00:15

    Just break the loop when you find the element you want to click on it.

    Reason is it is finding element even though that element is clicked. Use For -If Loop so when you get that element break it

提交回复
热议问题