great idee Augustin64
This commit is contained in:
parent
c3fc698e55
commit
eae66cb163
2
V4.py
2
V4.py
|
@ -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 :
|
||||||
|
|
Loading…
Reference in New Issue