Commit
·
d8ecebc
1
Parent(s):
fcecf6a
Update upload.py
Browse files
upload.py
CHANGED
|
@@ -537,8 +537,10 @@ def _post_video(driver) -> None:
|
|
| 537 |
driver : selenium.webdriver
|
| 538 |
"""
|
| 539 |
logger.debug(green('Clicking the post button'))
|
| 540 |
-
el=driver.find_element(By.XPATH,"
|
| 541 |
-
|
|
|
|
|
|
|
| 542 |
action = ActionChains(driver)
|
| 543 |
action.move_to_element_with_offset(el, 1032, 1176)
|
| 544 |
action.click()
|
|
|
|
| 537 |
driver : selenium.webdriver
|
| 538 |
"""
|
| 539 |
logger.debug(green('Clicking the post button'))
|
| 540 |
+
el=driver.find_element(By.XPATH,"//*[.='Post']")
|
| 541 |
+
button_xpath = "//*[.='Post']"
|
| 542 |
+
button = driver.find_element(By.XPATH,"//*[.='Post']")
|
| 543 |
+
driver.execute_script("arguments[0].click();", button)
|
| 544 |
action = ActionChains(driver)
|
| 545 |
action.move_to_element_with_offset(el, 1032, 1176)
|
| 546 |
action.click()
|