chrome 119 support, IDK why it is this version and not any other one

This commit is contained in:
Pierre Tellier 2023-11-08 18:13:55 +00:00
parent e32efc1bf7
commit 7b0c82ca14

View File

@ -15,18 +15,12 @@ def set_language(ldriver):
sleep(0.5)
# scroll down
action.reset_actions()
x_coord = 1210
y_coord = 430
action.move_by_offset(x_coord, y_coord).click().perform()
for i in range(5):
action.click().perform()
# choose french
action.reset_actions()
x_coord = 745
y_coord = 572
action.move_by_offset(x_coord, y_coord).click().perform()
# enter
action.reset_actions()
elm = ldriver.find_element(By.XPATH, "/html/body")
ActionChains(ldriver)\
.send_keys("french")\
.pause(0.5)\
.send_keys(Keys.TAB + Keys.TAB + Keys.ENTER + Keys.TAB + Keys.TAB + Keys.ENTER)\
.perform()
x_coord = 1163
y_coord = 717
action.move_by_offset(x_coord, y_coord).click().perform()