From 26f2a36dc670fbd2cdfdecb4fd3fb6d6417070fe Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Tue, 9 May 2017 16:10:35 +0200 Subject: [PATCH] Update tests suite for wait for browser to be loaded --- tests/test_forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_forms.py b/tests/test_forms.py index c9bd6ab..4e08db7 100644 --- a/tests/test_forms.py +++ b/tests/test_forms.py @@ -343,6 +343,9 @@ class TestHeavySelect2MultipleWidget(object): def test_widgets_selected_after_validation_error(self, db, live_server, driver): driver.get(live_server + self.url) + WebDriverWait(driver, 60).until( + expected_conditions.presence_of_element_located((By.ID, 'it_title')) + ) title = driver.find_element_by_id('id_title') title.send_keys('fo') genres, fartists = driver.find_elements_by_css_selector('.select2-selection--multiple')