Skip to content

Commit 276abd5

Browse files
committed
nextcloud_tests.py: Improve debug output on failed settings check
1 parent 96162f0 commit 276abd5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tests/nextcloud_tests.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,10 @@ def settings_config_check(wait, test):
324324

325325
test.check(True)
326326
except Exception as e:
327-
print(driver.find_element(By.CSS_SELECTOR, "#security-warning").get_attribute("innerHTML"))
327+
try:
328+
print(driver.find_element(By.CSS_SELECTOR, "#security-warning").get_attribute("innerHTML"))
329+
except NoSuchElementException:
330+
print(driver.page_source)
328331
test.check(e)
329332

330333

0 commit comments

Comments
 (0)