-
Hello - I am trying to use headless mode while using SB. Following the guide from: Code:
But when i run this code I get the error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Upgrade to the latest version of SeleniumBase. In your screenshot, is says your For UC Mode, make sure you're using Python 3.8 or newer. (You were using Python 3.7) And as mentioned in #2932 (comment), headless mode is not supported for UC Mode anymore because |
Beta Was this translation helpful? Give feedback.
Upgrade to the latest version of SeleniumBase. In your screenshot, is says your
yield sb
is on line 885. That's currently on line 995:SeleniumBase/seleniumbase/plugins/sb_manager.py
Line 995 in 6c1193e
For UC Mode, make sure you're using Python 3.8 or newer. (You were using Python 3.7)
And as mentioned in #2932 (comment), headless mode is not supported for UC Mode anymore because
PyAutoGUI
requires a headed browser. That's not an issue on Linux if you addxvfb=True
, which gives you a special virtual display so that you don't need headless mode anymore.