depreciation warnings 1
This commit is contained in:
parent
0902251737
commit
8705597d9a
9
V4.py
9
V4.py
|
@ -51,9 +51,7 @@ def FirefoxMobile(Headless = Headless):
|
||||||
if Headless :
|
if Headless :
|
||||||
options.add_argument("-headless")
|
options.add_argument("-headless")
|
||||||
|
|
||||||
MobileProfile = webdriver.FirefoxProfile()
|
options.set_preference("general.useragent.override", MOBILE_USER_AGENT)
|
||||||
MobileProfile.set_preference("general.useragent.override", MOBILE_USER_AGENT)
|
|
||||||
options.profile = MobileProfile
|
|
||||||
|
|
||||||
return(webdriver.Firefox(options=options, service_log_path=os.devnull))
|
return(webdriver.Firefox(options=options, service_log_path=os.devnull))
|
||||||
|
|
||||||
|
@ -69,10 +67,7 @@ def FirefoxPC(Headless = Headless):
|
||||||
if Headless :
|
if Headless :
|
||||||
options.add_argument("-headless")
|
options.add_argument("-headless")
|
||||||
|
|
||||||
PcProfile = webdriver.FirefoxProfile()
|
options.set_preference("general.useragent.override", PC_USER_AGENT)
|
||||||
PcProfile.set_preference("general.useragent.override", PC_USER_AGENT)
|
|
||||||
options.profile= PcProfile
|
|
||||||
|
|
||||||
return(webdriver.Firefox(options=options,service_log_path=os.devnull))
|
return(webdriver.Firefox(options=options,service_log_path=os.devnull))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue