Cloudflare window size

This commit is contained in:
NaiboWang-Alienware 2023-07-18 02:24:24 +08:00
parent 132c4a0bf0
commit 8cd41ce240
4 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@
"justMyCode": false,
// "args": ["--id", "[7]", "--read_type", "remote", "--headless", "0"]
// "args": ["--id", "[9]", "--read_type", "remote", "--headless", "0", "--saved_file_name", "YOUTUBE"]
"args": ["--id", "[79]", "--headless", "0", "--user_data", "1", "--keyboard", "0"]
"args": ["--id", "[81]", "--headless", "0", "--user_data", "1", "--keyboard", "0"]
}
]
}

View File

@ -421,7 +421,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
elif self.patcher.version_main >= 108:
options.add_argument("--headless=new")
options.add_argument("--window-size=1920,1080")
# options.add_argument("--window-size=1920,1080")
options.add_argument("--start-maximized")
options.add_argument("--no-sandbox")
# fixes "could not connect to chrome" error when running