What is StaleElementReference Exception?? How to get rid of it?

Опубликовано: 28 Сентябрь 2024
на канале: Ekta Choudhary
471
14

#selenium #staleelement #seleniumexceptions

Hello Guys,

This video would help us understand the basic reason behind StaleElementReference Exception. Summarizing it:

StaleElement Reference Exception can happen due to following reasons:

1. The page itself got refreshed entirely due to some operations performed by you
2. Your code refreshed the page
3. (The most common one). The element/ its section ONLY got refreshed due to AJAX call which is not visible externally.

Solutions:
1. Re-initialization of element
2. Explicit wait to wait until element gets re-attached to DOM

Git hub link for code:
https://github.com/EktaChoudhary23/Ja...

Please Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation
   / @ektasseleniumsolutions  

Follow me on my Facebook Page:
  / ekta.automation  

Join my Facebook group
  / 873243239854317  

Thanks for Watching..
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة