add wait-for-element to selenium test

This commit is contained in:
Andrew Dolgov 2023-11-01 13:40:35 +03:00
parent d4c972f551
commit 0b7d021f8e
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 3 additions and 0 deletions

View File

@ -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')")