You prolly dont give a shit but if you're stoned like me atm you can stream all of the new movies and series on InstaFlixxer. I've been watching with my girlfriend for the last weeks :)
In 7.42 min the action is being performed on the button click. But price getting refreshed in another web element. This is where I m confused. How will I get stale element exception??
We can use Try-Catch block and try to identify the element in try block if the exception is Stale element reference. But I would like to know by using Explicit wait or Fluent Wait as you are mentioned in the video in between. Thank you..
Thanks Naveen.. so after every refresh selenium will generate its internal reference Id, which will not match with previous reference Id for all pages including ajax ?
Can you please make a video on how to document the test plan and test strategy for a new feature say flight feature creation for make my trip application...( assuming already bus and train booking features are available)
Thank you so much Naveen for detailed explanation! in this case what kind of exception we get if element is disabled after refresh? is it NoSuchElementException or StaleElementReferenceException?
Hi Naveen i understood this "StaleElementException" but in my project manually we are not refreshing the page. In my project For create user page, we have one Orga Id and Unit Id As per OrgaId unit Id will get load. So after giving OrgaId automatic page will refresh and unit id will show in select drop down. I tried with implicit wait also but still getting "TimeoutException" otherwise "StaleElementException" kindly give me some solution for this error. Thank you.
Thanks Naveen for the video and the blog also you have wriiten on this.. Is there any way to handle this error? Does JavaScriptExecutor helps to handle
Thanks for the clear explanation with the unique ID. I have a python selenium script that goes to a page, enters data and then clicks a submit button. Another page loads and the script clicks a search button. This is performed through a loop repeatedly and it works for approximately 10-40 times but it always fails at some seemingly random point with the stale element reference exception. I am searching for the button and clicking it on the very next line. Is it possible that the unique ID of the element is changing from one line of my code to the next? If so how do I address it? SearchButton = WebDriverWait(driver, 15).until(EC.element_to_be_clickable((By.CSS_SELECTOR, '.button-label'))) SearchButton.click()
Amazing ! You have made it so clear by showing the exact reason for which the exception appears.
Your explanation is simply Superb.
Awesome man...You r one of the Automation testing legend...Keep it up....n thanks for videos
Thanks Naveen . Could you please make video on how we can handle such kind of exception. have faced such questions in interview many times.
Mysteries make QA more interesting 🧐. Like detective stories. 😎
Naveen, your sessions are informative, but they are long. Requesting you to please squeeze them a bit.
Thanks for your good work.
You prolly dont give a shit but if you're stoned like me atm you can stream all of the new movies and series on InstaFlixxer. I've been watching with my girlfriend for the last weeks :)
@Zion Erick definitely, I have been watching on instaflixxer for years myself :D
thanks naveen. My doubt regarding stale element has came to end
Got good clarity by this explanation
Thank you Naveen.
All your videos have made to show the exact reason
Great Naveen ..... One Q ... Then how can we handle staleElementException in Selenium ?? By using a function defined in Explicit ??
One of the best explanation of the solution I found:
th-cam.com/video/yYQrtmNn6Uo/w-d-xo.html
Amazing mystery of staleelement exception thanks Naveen
In 7.42 min the action is being performed on the button click. But price getting refreshed in another web element. This is where I m confused. How will I get stale element exception??
Thank you so much Naveen :), crisp explanation
Amazing , clear explanation
Thanks a lot Naveen.. Learning so much using your tutorial. And please explain us how to handle this exception?.
We can use Try-Catch block and try to identify the element in try block if the exception is Stale element reference. But I would like to know by using Explicit wait or Fluent Wait as you are mentioned in the video in between.
Thank you..
Thanks Naveen..
so after every refresh selenium will generate its internal reference Id, which will not match with previous reference Id for all pages including ajax ?
yes :)
Naveen AutomationLabs Thank you. :)
can you please explain coverage of ajax, js in selenium. 📺
Hey Naveen...Are you doing well? Your voice is different from previous videos.
Can you please make a video on how to document the test plan and test strategy for a new feature say flight feature creation for make my trip application...( assuming already bus and train booking features are available)
Thanks Sir for explaining actual reason i.e ID
amazing explanation sir..Thank You..
Thank you so much Naveen for detailed explanation! in this case what kind of exception we get if element is disabled after refresh? is it NoSuchElementException or StaleElementReferenceException?
Iam getting after selecting the drop down value my that page is reloading at the time iam getting stale element exception , how to handle it ??
wow, a deep dive session
Hi Naveen i understood this "StaleElementException" but in my project manually we are not refreshing the page. In my project For create user page, we have one Orga Id and Unit Id As per OrgaId unit Id will get load. So after giving OrgaId automatic page will refresh and unit id will show in select drop down. I tried with implicit wait also but still getting "TimeoutException" otherwise "StaleElementException" kindly give me some solution for this error. Thank you.
Thanks Naveen for the video and the blog also you have wriiten on this..
Is there any way to handle this error? Does JavaScriptExecutor helps to handle
One of the best explanation of the solution I found:
th-cam.com/video/yYQrtmNn6Uo/w-d-xo.html
Great explanation 👍
Great video 👍
So, how can we handle this stale element exception?
Very nice explained
Big fan 🙌
thanks, good explanation and can you provide Flipkart payment by using selenium Webdriver
Excellent 👍
Thanks Naveen ☺️
great video thanks @naveek
Thanks Naveen
Thank you so much sir :)
Most welcome!
How to overcome stale element exception
One of the best explanation of the solution I found:
th-cam.com/video/yYQrtmNn6Uo/w-d-xo.html
Thanks for the clear explanation with the unique ID.
I have a python selenium script that goes to a page, enters data and then clicks a submit button. Another page loads and the script clicks a search button. This is performed through a loop repeatedly and it works for approximately 10-40 times but it always fails at some seemingly random point with the stale element reference exception. I am searching for the button and clicking it on the very next line.
Is it possible that the unique ID of the element is changing from one line of my code to the next? If so how do I address it?
SearchButton = WebDriverWait(driver, 15).until(EC.element_to_be_clickable((By.CSS_SELECTOR, '.button-label')))
SearchButton.click()