Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide webdriver manager downloading bar ? #434

Closed
mouadessalim opened this issue Sep 7, 2022 · 6 comments · Fixed by #438
Closed

How to hide webdriver manager downloading bar ? #434

mouadessalim opened this issue Sep 7, 2022 · 6 comments · Fixed by #438
Assignees

Comments

@mouadessalim
Copy link

mouadessalim commented Sep 7, 2022

Hey, I've searched quit a lot on how can i hide the downloading bar from printing without changing source module code. I've already tested the os.environ['WDM_LOG_LEVEL'] = '0' and os.environ['WDM_LOG'] = str(logging.NOTSET).

image

And what about this comment @SergeyPirogov : #389 (comment)

Thanks for helping ! 😊

@SergeyPirogov
Copy link
Owner

Hello, it's not possible now

@mouadessalim
Copy link
Author

ok do you think it may possible in the futur to support it ?

@DAKExDUCK
Copy link
Contributor

You can use tmux if you have some troubles with running in background.

For example, you are using python3 main.py & disown, your code have file logger and wdm bar trying to flush(), there will be error.
Solution:
tmux
python3 main.py
<ctrl+b> <d>
if you want go back to session:
tmux attach or tmux attach -t N N is a number of session

if something is unclear, you can contact again

@mouadessalim
Copy link
Author

@DAKExDUCK hey thanks for your reply unfortunately I don't use a linux vps to use tmux it's more of a beautifully designed windows console application that uses selenium to grab some things from the web. This is why the downloading bar broke the designed tool

You can understand better if I send you the repository : https://github.com/9P9/Discord-QR-Token-Logger

@DAKExDUCK
Copy link
Contributor

DAKExDUCK commented Sep 16, 2022

@mouadessalim So, now i understand, maybe I'll try adding arguments to .install() to avoid the progress bar. But also, I'm not sure if it will get into main

Good luck!

UPDATE
I have added new env variable to config.py

WDM_PROGRESS_BAR with def value 1

Waiting for an answer from the author #438

@nakami
Copy link
Contributor

nakami commented Dec 29, 2022

It's merged. I added a PR which mentions this env variable in the README.md.

If it hasn't been clear, you can use this:

import os
os.environ['WDM_PROGRESS_BAR'] = str(0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants