You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update to pak.py to use a more nuanced wait strategy (such as non-working solution below) rather than increasing sleep timers to ensure presence of page elements.
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
wait = WebDriverWait(driver, 30)
xpath_query = '/html/body/app-bootstrap/ng2-bootstrap/bootstrap/' +\
'div/div/div/div/div[1]/div[2]/div/div[1]/div[1]/div[1]' + \
'/div/lego-report/lego-canvas-container/div/file-drop-zone/' + \
'span/content-section/canvas-component[20]/div/div/div[1]/' + \
'div/div/lego-table/div/div[3]/div/div'
element = wait.until(
EC.text_to_be_present_in_element(
(By.XPATH, xpath_query),
'Last updated on'
)
)
The text was updated successfully, but these errors were encountered:
Update to
pak.py
to use a more nuanced wait strategy (such as non-working solution below) rather than increasing sleep timers to ensure presence of page elements.The text was updated successfully, but these errors were encountered: