Y
Y
Yan2021-09-28 19:43:59
Python
Yan, 2021-09-28 19:43:59

Selenium, unable to hide window, what should I do?

I use Opera, I can't hide the window. When I set the desired parameter, a white window opens, but the script works.

from selenium import webdriver

from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument("--log-level=3")
options.headless = True
web = webdriver.Chrome(executable_path=r'D:\Users\Я\Desktop\Projects\drivers\operadriver.exe', chrome_options=options)

PS Change to the Chrome code for Opera does not help and you can, please, without third-party libraries

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ScriptKiddo, 2021-09-28
@Yan200

Opera does not support headless mode
https://github.com/operasoftware/operachromiumdriv...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question