fix: update wait condition in setupStats function to check for visibility of stats content
All checks were successful
Build and Push Docker Image / build (push) Successful in 11m58s
All checks were successful
Build and Push Docker Image / build (push) Successful in 11m58s
This commit is contained in:
2
main.py
2
main.py
@@ -203,7 +203,7 @@ def setupStats(driver: webdriver.Remote, url: str, retries: int = 5) -> webdrive
|
|||||||
actions.context_click(driver.find_element(By.CLASS_NAME ,'video-js')).perform()
|
actions.context_click(driver.find_element(By.CLASS_NAME ,'video-js')).perform()
|
||||||
statsForNerds = driver.find_elements(By.CLASS_NAME ,'vjs-menu-item')
|
statsForNerds = driver.find_elements(By.CLASS_NAME ,'vjs-menu-item')
|
||||||
actions.click(statsForNerds[-1]).perform()
|
actions.click(statsForNerds[-1]).perform()
|
||||||
wait.until(ec.text_to_be_present_in_element((By.CLASS_NAME, 'vjs-stats-list'), 'Player'))
|
wait.until(ec.presence_of_element_located((By.CSS_SELECTOR, 'div.vjs-stats-content[style="display: block;"]')))
|
||||||
actions.move_to_element(driver.find_element(By.CLASS_NAME ,'vjs-control-bar')).perform()
|
actions.move_to_element(driver.find_element(By.CLASS_NAME ,'vjs-control-bar')).perform()
|
||||||
logger.log(logging.INFO, 'Stats setup complete.')
|
logger.log(logging.INFO, 'Stats setup complete.')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user