I am really grateful to you that you created this video because no one else on TH-cam has told the solution to this exception and also the method told by you is the most easiest. I want to tell you that this was the only exception in selenium which I did not knew how to handle and today you solved my only issue in selenium. Thank you sir.
Very nice explanation,thank you!! I have watched many videos on youtube and read many blogs on StaleElementException, everyone has explained what does it mean but no one has explained how to handle it.This is the only video which made all my doubts clear about StaleElementException.Thanks so much for explaining along with practical example.
without this there is no selenium interview, unfortunately i dint answer this question and lost my interview. now i understood in very easy format. tq verymuch sir
Thank you so much, your idea helped fix the issue. The most easiest and straightforward fix. All other videos I watched did not make sense to me and were not of much help. maybe they are too smart or I am too low to understand what the intention was. either way, thank you again.
Sir I m trying to automate make my trip site city drop-down but I m not able to automate sir.. I m getting stale exception... Will u plz send me code regarding it
How can we use try catch solution in loop for the below code? Please explain List footer = driver.findElements(By.xpath("//*[@id='pageFooterChildren']/ul/li")); int size = footer.size(); for(int i = 0;i
Main reason why a lot of test automation suites are peppered with try-catch blocks with repetitive code. Try looking into ExpectedConditions.refresh() instead. stackoverflow.com/questions/28026845/how-and-when-to-implement-refreshedexpectedconditiont-condition-of-selenium Or better yet, use lamba expressions.
I understand the workaround for the stale exception. But In mycase, we are using page objects so xpaths are assigned to a variable and we will be using that variable in multiple test cases. do you have any suggestion to me to handle this exception?
I am really grateful to you that you created this video because no one else on TH-cam has told the solution to this exception and also the method told by you is the most easiest. I want to tell you that this was the only exception in selenium which I did not knew how to handle and today you solved my only issue in selenium.
Thank you sir.
Very nice explanation,thank you!! I have watched many videos on youtube and read many blogs on StaleElementException, everyone has explained what does it mean but no one has explained how to handle it.This is the only video which made all my doubts clear about StaleElementException.Thanks so much for explaining along with practical example.
yes you are correct
without this there is no selenium interview, unfortunately i dint answer this question and lost my interview. now i understood in very easy format. tq verymuch sir
Tommorow is my mini project evaluation in cognizant and I'm watching your videos.
Thank you so much for this video
All the best
Thank you very much for uploading this video. It has helped me solved me the exception in the my test script.
You are welcome!
Crystal clear explanation sir.
Glad to hear that
Thank you Sir giving Simple solution to handle StaleElementReferenceException!!
Welcome
Thank you so much, your idea helped fix the issue. The most easiest and straightforward fix. All other videos I watched did not make sense to me and were not of much help. maybe they are too smart or I am too low to understand what the intention was. either way, thank you again.
Very nice solution u given sir for this problem in simple code... 👍🏻
thanks
You are very great sir...
This worked, thank you so much !!!
Glad it helped!
Thank you again. You are really helping us a lot.
My pleasure!
I like your explanation, excellent
Thanks!
Very nice explaination Sir 👍🏾
Thanks
Thank you so much for ur efforts sir🙏
It's my pleasure
Nice explanation 👍👍
Thank you
Great Explanation. Thanks:)
Welcome
Awesome Explanation Sir.... :)
Thanks
Very nice explanation.....
Thanks
Nice One and Thank u for this video
welcome
Thanks Sir for the solution, RIP to StaleElementReferenceException
Thank you sir. Its really helped me lot.
Welcome
thank u so much sir........
Most welcome
Very Nice.😎.... Plz provide that website link🤟
Nice sir,..
Thanks
What if we have a sequence of scripts that all throw this exception.how we can handle those kind of things
thank you sir
Most welcome
Can we handle through POM Frame work?, by using syntax : @findelement(locatername =''locatervalue');
Plz clarify me about it.
Thank you
Welcome
Thank you !!!
Welcome
sir by page factory how can we handle it?
Sir I m trying to automate make my trip site city drop-down but I m not able to automate sir.. I m getting stale exception... Will u plz send me code regarding it
How can we use try catch solution in loop for the below code?
Please explain
List footer = driver.findElements(By.xpath("//*[@id='pageFooterChildren']/ul/li"));
int size = footer.size();
for(int i = 0;i
it generates stale reference error after 30 min.WHy?
Main reason why a lot of test automation suites are peppered with try-catch blocks with repetitive code.
Try looking into ExpectedConditions.refresh() instead.
stackoverflow.com/questions/28026845/how-and-when-to-implement-refreshedexpectedconditiont-condition-of-selenium
Or better yet, use lamba expressions.
I understand the workaround for the stale exception. But In mycase, we are using page objects so xpaths are assigned to a variable and we will be using that variable in multiple test cases.
do you have any suggestion to me to handle this exception?
same problem with me.. i couldnt get to fix this issue with a locator using variable.