webdriver_manager icon indicating copy to clipboard operation
webdriver_manager copied to clipboard

How to hide webdriver manager downloading bar ?

Open mouadessalim opened this issue 3 years ago • 5 comments

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 : https://github.com/SergeyPirogov/webdriver_manager/pull/389#issuecomment-1177128709

Thanks for helping ! 😊

mouadessalim avatar Sep 07 '22 23:09 mouadessalim

Hello, it's not possible now

SergeyPirogov avatar Sep 12 '22 06:09 SergeyPirogov

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

mouadessalim avatar Sep 14 '22 18:09 mouadessalim

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

DAKExDUCK avatar Sep 16 '22 10:09 DAKExDUCK

@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

mouadessalim avatar Sep 16 '22 11:09 mouadessalim

@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 https://github.com/SergeyPirogov/webdriver_manager/pull/438

DAKExDUCK avatar Sep 16 '22 11:09 DAKExDUCK

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)

nakami avatar Dec 29 '22 16:12 nakami