browser size

This commit is contained in:
Sam Hadow 2024-07-21 11:49:53 +02:00
parent e07d2ef4ea
commit cc8a918cd5
2 changed files with 10 additions and 2 deletions

View File

@ -47,9 +47,12 @@ def check_item(settings_item):
##### 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(
command_executor='http://127.0.0.1:4444',
options=webdriver.FirefoxOptions()
options=firefox_options
)
##### for testing with local geckodriver
@ -57,6 +60,8 @@ def check_item(settings_item):
# service = webdriver.FirefoxService(executable_path='/bin/geckodriver')
# profile = webdriver.FirefoxProfile()
# options.profile = profile
# options.add_argument("--width=2560")
# options.add_argument("--height=1440")
# driver = webdriver.Firefox(service=service, options=options)
# load login cookies

View File

@ -28,7 +28,10 @@ if __name__ == '__main__':
# c_l = ["1005006062371246", ["Pr Tactile 62g x35"]]
# 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))
# c_l = ["1005005824413309", ["00350"]]