Skip to content

Commit

Permalink
Add implicit wait and increase wait time.
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuramachandran committed Mar 16, 2017
1 parent a3a0db5 commit de0eda1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vixen/integration_tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def setUpClass(cls):
elif driver == 'chrome':
browser = webdriver.Chrome()

browser.implicitly_wait(10)
browser.get('http://localhost:%d' % port)
cls.browser = browser
cls.ui = ui
Expand All @@ -60,13 +61,13 @@ def test_edit_view_project(self):
browser = cls.browser
ui = cls.ui
data_path = os.path.join(root, 'test')
wait = WebDriverWait(browser, 5)
wait = WebDriverWait(browser, 10)

# When
# Create a new project.
e = wait.until(EC.presence_of_element_located((By.ID, 'new-project')))
e.click()
time.sleep(0.5)

# Set the name.
e = wait.until(EC.presence_of_element_located((By.ID, 'edit-name')))
e.clear()
Expand Down

0 comments on commit de0eda1

Please sign in to comment.