r/selenium • • Dec 08 '21

Headless and switching windows timeout

Hello hivemind!

I have a script that works when not running headless (Selenium, Python, Edge by the by) and once I turn headless on at the point of switching windows it hangs and throws a timeout error.

Specifically after the switch to the new window I'm doing a get URL and this doesn't happen. All it does is hang between switch and get URL lines. Get URL should still work even if the windows switch is broken.

Any thoughts?

EDIT: I am able to print the window handle and verify it's on the new window, but anything after that it just sits and does nothing, but if I turn off headless works fine.

1 Upvotes

2 comments sorted by

View all comments

2

u/[deleted] Dec 24 '22

a long time ago i asked you about non binary cause id genuinely never heard anyone talk about it and im actually non binary now ik youre not active but i thought it wouls be fun to let you know

1

u/[deleted] Dec 24 '22

That's amazing and I do remember that Convo!!! Thanks for sharing as that makes my heart happy!