-
Notifications
You must be signed in to change notification settings - Fork 509
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
We noticed regressions and inconsistencies after migrating from 0.18.1 to 0.19.0 #1138
Comments
When you say the wait_time parameter is ignored, have you observed this with your eyes? Does nothing happen for 30 seconds or does the script appear to continue? |
The implementation of You can use the wait_time argument with |
the script appears to continue. It doesn't wait for the element to be available, but it immediately spits errors like I can provide more information and additional debugging information on Monday when I'm back to work. Thanks for your reply in the mean time 🙏 |
we tried that too (yes, I confirm the documentation is not updated but we dug into the source code to find out) but it didn't help. I will collect more information in the next days, thanks again. |
@jsfehler hi, I finally had the possibility to do some tests and I tried to do what you said (add the Our code does the following checks (they may be redundant, possibly, but they were working with 0.18.1): browser.find_by_css("[data-testid=signup-form-expand]", wait_time=30).is_visible(30)
browser.find_by_css("[data-testid=signup-form-expand]", wait_time=30).first.click()
browser.find_by_id("id_email", wait_time=30).is_visible(30)
browser.find_by_id("id_password1", wait_time=30).is_visible(30)
password = password or TEST_PASSWORD
browser.fill("email", email)
browser.fill("password1", password)
browser.find_by_css("[data-testid=signup-form-submit]", wait_time=30).first.click() If I put a If I remove the HOOK-ERROR in before_feature: ElementNotInteractableException: Message: Element <input id="id_email" class="field__input" name="email" type="email"> could not be scrolled into view
Stacktrace:
WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5
ElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.jsm:293:5
interaction.clearElement@chrome://remote/content/marionette/interaction.js:344:11
clearElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:194:17
receiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:87:16 p.s: when you say "or apply it at the Browser level" (regarding |
@jsfehler hi, sorry to bother you, I was wondering if there were any updates on your side for the above issue. Thanks 🙏 |
I think I might have a related issue I've been seeing. If unrelated, I can open up a separate one. I have some tests which are hanging and waiting indefinitely whenever the element cannot be found. This happens if I'm writing a test first, before I've actually implemented the feature. For example:
Printed in the console before the test hangs:
I would expect the Has anyone encountered this issue with the wait_time not being respected? |
@andreagrandi Apologies for the extremely late answer: The However, I've fixed the issue where you were getting |
@nburt This sounds like a separate issue. We'll also need a traceback to see the error message your code is throwing. |
Hello folks,
we are trying to upgrade an existing project to
splinter==0.19.0
but we are running into a lot of issues.We are aware of the deprecations you introduced (the warning was quite useful) so we migrated all the existing code like this:
to this:
and the weird thing is that some checks still work as they were working with
0.18.1
while some others give us a mix of these issues:0.18.1
now with0.19.0
needs atime.sleep(1)
(or even longer) otherwise the document isn't readywait_time
parameter is completely ignored: if we use abreakpoint()
and debug the code step by step, everything works fine because by running it step by step we manually introduce slowness and by the time we run the next line of code, the element is ready to be parsed.Considering that we haven't done any other change to our code (the initial PR was made by Dependabot which just bumped the dependency number and I only changed the syntax by following the warning message) we can't really understand why the same code doesn't work anymore.
Are you aware of any similar regression or do you know if there is something we should do to make sure the document is fully loaded before we try to access any of its elements?
Thank you so much.
The text was updated successfully, but these errors were encountered: