Skip to content

Can headless be disabled on Linux? #2189

Answered by mdmintz
krypterro asked this question in Q&A
Discussion options

You must be logged in to vote

You're looking for headed=True:

headed=None, # Run tests in headed/GUI mode on Linux, where not default.

Updated code: (The driver also has the sleep(seconds) method included)

from seleniumbase import Driver

driver = Driver(uc=True, headed=True)
driver.get("https://nowsecure.nl/#relax")
driver.sleep(6)
driver.quit()

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants