mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 09:22:21 +00:00
Add a wait for the animation to complete during event creation.
This commit is contained in:
@@ -324,7 +324,10 @@ class EventTest(LiveServerTestCase):
|
|||||||
'//select[@id="id_organisation"]//option[@selected="selected"]')
|
'//select[@id="id_organisation"]//option[@selected="selected"]')
|
||||||
self.assertEqual(obj.pk, int(option.get_attribute("value")))
|
self.assertEqual(obj.pk, int(option.get_attribute("value")))
|
||||||
|
|
||||||
# Create veneue
|
# Create venue
|
||||||
|
wait = WebDriverWait(self.browser, 10) #setup WebDriverWait to use later (to wait for animations)
|
||||||
|
|
||||||
|
wait.until(animation_is_finished())
|
||||||
add_button = self.browser.find_element_by_xpath(
|
add_button = self.browser.find_element_by_xpath(
|
||||||
'//a[@data-target="#id_venue" and contains(@href, "add")]')
|
'//a[@data-target="#id_venue" and contains(@href, "add")]')
|
||||||
add_button.click()
|
add_button.click()
|
||||||
|
|||||||
Reference in New Issue
Block a user