undetected-chromedriver
undetected-chromedriver copied to clipboard
Can not change window size!
I use the following code but it doesn't work: chrome_options = uc.ChromeOptions() chrome_options.add_argument("--window-size=1280,720")
Have you tried using driver.set_window_position(0, 0)
to set window position (optional), and then driver.set_window_size(0, 0)
?
The windows override of the size option is hard coded in the init_.py file .
No solution with the current version to use the --windows-size
argument.
For instance, the following will do nothing:
options = ChromeOptions()
options.add_argument("--window-size=1,1")
driver = uc.Chrome(
options=options, # options for the browser
)
There is a PR for that, see #1187