pytest won't reach breakpoint() after seleniumbase upgrade #2713
-
hi @mdmintz - thanks for all the upgrades lately on UC mode. Hope this is a problem that is helpful to others - I recently upgraded to v4.25.4 - where my use case requires a breakpoint after I open a site in UC mode to run code/clicks, for example running
runs all the way through without the breakpoint triggering with the output:
This was working before upgrading seleniumbase. However, if I simply place the breakpoint before activating driver context (and I've tried other test code from the docs for sanity check with same result), the breakpoint activates and it appears to be skipping the sb driver context line ("return None") and not reaching the breakpoint() - the warning after exiting the debugger is:
For context, I'm on sonoma14, running on visual studio code. I've also uninstalled and re-installed seleniumbase, to no avail. If there's other helpful tests/errors I can send, please let me know. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This worked for me: from seleniumbase import SB
with SB(uc=True, test=True, incognito=True) as sb:
url = "https://gitlab.com"
sb.driver.uc_open_with_reconnect(url, "breakpoint") If that didn't put you in a breakpoint, then there may be something up with your environment configuration. |
Beta Was this translation helpful? Give feedback.
This worked for me:
If that didn't put you in a breakpoint, then there may be something up with your environment configuration.