Skip to content

Commit

Permalink
add more url details to debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho committed Mar 9, 2023
1 parent 20ed018 commit 2c2a18b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions superset/utils/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ def get_screenshot(
try:
try:
# page didn't load
logger.debug("Wait for the presence of %s", element_name)
logger.debug(
"Wait for the presence of %s at url: %s", element_name, url
)
element = WebDriverWait(driver, self._screenshot_locate_wait).until(
EC.presence_of_element_located((By.CLASS_NAME, element_name))
)
Expand All @@ -188,7 +190,7 @@ def get_screenshot(

try:
# chart containers didn't render
logger.debug("Wait for chart containers to draw")
logger.debug("Wait for chart containers to draw at url: %s", url)
WebDriverWait(driver, self._screenshot_locate_wait).until(
EC.visibility_of_all_elements_located(
(By.CLASS_NAME, "slice_container")
Expand All @@ -203,7 +205,9 @@ def get_screenshot(

try:
# charts took too long to load
logger.debug("Wait for loading element of charts to be gone")
logger.debug(
"Wait for loading element of charts to be gone at url: %s", url
)
WebDriverWait(driver, self._screenshot_load_wait).until_not(
EC.presence_of_all_elements_located((By.CLASS_NAME, "loading"))
)
Expand Down

0 comments on commit 2c2a18b

Please sign in to comment.