great idee Augustin64

This commit is contained in:
piair 2022-11-09 22:54:55 +01:00
parent c3fc698e55
commit eae66cb163
1 changed files with 2 additions and 0 deletions

2
V4.py
View File

@ -108,6 +108,8 @@ def FirefoxDriver(mobile=False, Headless=Headless):
options = Options() options = Options()
options.set_preference("browser.link.open_newwindow", 3) options.set_preference("browser.link.open_newwindow", 3)
if FAST :
options.set_preference("permissions.default.image", 2) #disable image loading. May add this without the fast option soon
if Headless: if Headless:
options.add_argument("-headless") options.add_argument("-headless")
if mobile : if mobile :