Permalink
Browse files

Fix for TestPagination.test_search_pagination

Added and explicit wait.
  • Loading branch information...
teodosia committed May 23, 2012
1 parent d902db3 commit 42f8dcbbf535df834f3be08b431f2bbf949a5fd9
Showing with 2 additions and 0 deletions.
  1. +2 −0 pages/base.py
View
@@ -8,6 +8,7 @@
from urlparse import urlparse
from selenium.webdriver.common.by import By
+from selenium.webdriver.support.ui import WebDriverWait
from page import Page
@@ -30,6 +31,7 @@ def footer(self):
def click_older_messages(self):
"""Navigates to the previous page of older messages."""
self.selenium.find_element(*self._older_messages_link_locator).click()
+ WebDriverWait(self.selenium, 10).until(lambda s: self.header.is_feedback_link_visible)
def click_newer_messages(self):
"""Navigates to the next page of newer messages."""

0 comments on commit 42f8dcb

Please sign in to comment.