Closed oniononion36 closed 6 days ago
Window size can be set after the browser has been launched:
driver.set_window_size(1000, 1000)
Also, chromium_arg
takes a comma-separated list of args, which means that individual args cannot contain commas.
driver = Driver(uc=True, agent=generate_random_mobile_user_agent(False),
chromium_arg="--window-size:280,653")
@mdmintz I have set like above snippet even not set size, if I used
driver.set_window_size(1000, 1000)
then it's work but I want to set in chromium_arg, can you please give me a sample of how to set .
When I pass chromium_arg='--window-size=1000,1000' into Driver, the argument gets split up into
--window-size=1000
and--1000
, and is subsequently ignored at browser start up.