Skip to content

how to hide the output of seleniumbase? #2029

Answered by mdmintz
Sytehel-1337 asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, to hide output like that, you can run tests using pytest multithreaded-mode.

Eg. pytest -n1 (For one thread, but hides output)

It's also possible that a future release of SeleniumBase will add an option to hide the output of installing drivers directly.


Update:

This feature was added in SeleniumBase 4.17.12:

Here's a way to make tests download drivers silently: (if a driver download is needed)

from seleniumbase.config import settings
settings.HIDE_DRIVER_DOWNLOADS = True

Example:

"""Context Manager Test. Runs with "python". (pytest not needed)."""
from seleniumbase import SB
from seleniumbase.config import settings
settings.HIDE_DRIVER_DOWNLOADS = True

with SB() as sb:  # By …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Sytehel-1337
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Comment options

You must be logged in to vote
0 replies
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