Commit
·
040f61c
1
Parent(s):
d8ecebc
Update upload.py
Browse files
upload.py
CHANGED
|
@@ -537,20 +537,13 @@ 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 |
-
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()
|
| 547 |
-
action.perform()
|
| 548 |
#WebDriverWait(driver, config['explicit_wait']).until(config['selectors']['upload']['post'])
|
| 549 |
logger.debug(green('Clicking the post button 1'))
|
| 550 |
|
| 551 |
post = driver.find_element(By.XPATH, config['selectors']['upload']['post'])
|
| 552 |
logger.debug(green('Clicking the post button 2'))
|
| 553 |
-
post.click().perform()
|
| 554 |
logger.debug(green('Clicking the post button 3'))
|
| 555 |
# waits for the video to upload
|
| 556 |
post_confirmation = EC.presence_of_element_located(
|
|
|
|
| 537 |
driver : selenium.webdriver
|
| 538 |
"""
|
| 539 |
logger.debug(green('Clicking the post button'))
|
| 540 |
+
el=driver.find_element(By.XPATH,config['selectors']['upload']['post'])
|
| 541 |
+
driver.execute_script("arguments[0].click();", el)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 542 |
#WebDriverWait(driver, config['explicit_wait']).until(config['selectors']['upload']['post'])
|
| 543 |
logger.debug(green('Clicking the post button 1'))
|
| 544 |
|
| 545 |
post = driver.find_element(By.XPATH, config['selectors']['upload']['post'])
|
| 546 |
logger.debug(green('Clicking the post button 2'))
|
|
|
|
| 547 |
logger.debug(green('Clicking the post button 3'))
|
| 548 |
# waits for the video to upload
|
| 549 |
post_confirmation = EC.presence_of_element_located(
|