-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for StaleElementReferenceException #396
Conversation
@iffy this exceptions is raised when the page is modified. Why ignore it? |
@andrewsmedina I don't know? :) Here's my experience: I was using
to something like this code, which pretty much duplicates the guts of
I'm not sure when I would want the Maybe a better solution would be to let the caller choose which exceptions to ignore? e.g.
|
This pull request is superior to #450 as it addresses the issue both in I have encountered this issue also and it occurs in a race condition when the |
@andrewsmedina Can we expect a merge with this change anytime soon? |
I tried creating a workaround by subclassing the browser object:
But because Browser isn't a class (despite the signal in its casing), that fails with |
Ultimately, I ended up bypassing the
I'm not yet sure this approach works, but I'm hopeful it will. |
@iffy thanks for contribute |
I don't know how to test this -- especially since I can't duplicate the problem all the time. I just know that the monkey-patched version I am running has not yet raised this error and continues to work.
I'm happy to make modifications (including adding tests) with some guidance.