Issue with 'xvfb' Argument in Driver Initialization #2949
-
Hello Michael, I have encountered an issue when trying to initialize the Driver with the 'xvfb' argument. According to the documentation, I should be able to specify 'xvfb=True' directly in the Driver() constructor when running on Linux to manage the virtual framebuffer. However, doing so results in the following error: Error during driver initialization: Driver() got an unexpected keyword argument 'xvfb' Here's how I'm trying to initialize the Driver:
This issue occurs even though I have set up all necessary packages (xvfb, xvfbwrapper, etc.). Could you please clarify if there's a specific version or setup requirement that I might be missing, or if there's an alternative recommended approach to using xvfb with SeleniumBase? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Use the |
Beta Was this translation helpful? Give feedback.
Use the
SB()
format forxvfb
. TheDriver()
format does not have a context manager structure (there's no tearDown phase, only setUp), so it is limited in abilities.