browser size
This commit is contained in:
parent
e07d2ef4ea
commit
cc8a918cd5
@ -47,9 +47,12 @@ def check_item(settings_item):
|
|||||||
|
|
||||||
|
|
||||||
##### to use with selenium firefox container
|
##### to use with selenium firefox container
|
||||||
|
firefox_options = webdriver.FirefoxOptions()
|
||||||
|
firefox_options.add_argument("--width=2560")
|
||||||
|
firefox_options.add_argument("--height=1440")
|
||||||
driver = webdriver.Remote(
|
driver = webdriver.Remote(
|
||||||
command_executor='http://127.0.0.1:4444',
|
command_executor='http://127.0.0.1:4444',
|
||||||
options=webdriver.FirefoxOptions()
|
options=firefox_options
|
||||||
)
|
)
|
||||||
|
|
||||||
##### for testing with local geckodriver
|
##### for testing with local geckodriver
|
||||||
@ -57,6 +60,8 @@ def check_item(settings_item):
|
|||||||
# service = webdriver.FirefoxService(executable_path='/bin/geckodriver')
|
# service = webdriver.FirefoxService(executable_path='/bin/geckodriver')
|
||||||
# profile = webdriver.FirefoxProfile()
|
# profile = webdriver.FirefoxProfile()
|
||||||
# options.profile = profile
|
# options.profile = profile
|
||||||
|
# options.add_argument("--width=2560")
|
||||||
|
# options.add_argument("--height=1440")
|
||||||
# driver = webdriver.Firefox(service=service, options=options)
|
# driver = webdriver.Firefox(service=service, options=options)
|
||||||
|
|
||||||
# load login cookies
|
# load login cookies
|
||||||
|
@ -28,7 +28,10 @@ if __name__ == '__main__':
|
|||||||
# c_l = ["1005006062371246", ["Pr Tactile 62g x35"]]
|
# c_l = ["1005006062371246", ["Pr Tactile 62g x35"]]
|
||||||
# print(check_item(c_l))
|
# print(check_item(c_l))
|
||||||
|
|
||||||
c_l = ["1005005676358693", ["5x250mm 5pcs"]]
|
# c_l = ["1005005676358693", ["5x250mm 5pcs"]]
|
||||||
|
# print(check_item(c_l))
|
||||||
|
|
||||||
|
c_l = ["1005005512267841", ["Pr Linear 45g x110","Factory Lubed"]]
|
||||||
print(check_item(c_l))
|
print(check_item(c_l))
|
||||||
|
|
||||||
# c_l = ["1005005824413309", ["00350"]]
|
# c_l = ["1005005824413309", ["00350"]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user