summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-11-01 13:40:35 +0300
committerAndrew Dolgov <[email protected]>2023-11-01 13:40:35 +0300
commit0b7d021f8eb5d3d44fcc332c128568b1f2512fc4 (patch)
tree1082c95bc081d1393eb8b3bc12ca960c1d8bba5e
parentd4c972f5516ec8578f5a7386df0be375ac9b7289 (diff)
add wait-for-element to selenium test
-rw-r--r--tests/integration/selenium_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/integration/selenium_test.py b/tests/integration/selenium_test.py
index e5f6b86fa..780f46265 100644
--- a/tests/integration/selenium_test.py
+++ b/tests/integration/selenium_test.py
@@ -56,6 +56,9 @@ class SeleniumTest(unittest.TestCase):
self.driver.get(self.base_url + "/prefs.php")
assert self.driver.find_element(by=By.CSS_SELECTOR, value="body.ttrss_prefs")
+
+ WebDriverWait(self.driver, 10).until(EC.presence_of_element_located((By.CSS_SELECTOR, "#dijit_layout_AccordionPane_1_wrapper")))
+
assert self.driver.find_element(by=By.CSS_SELECTOR, value="#dijit_layout_AccordionPane_1_wrapper").is_displayed()
self.driver.execute_script("dijit.byId('pref-tabs').selectChild('feedsTab')")