This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #62 from zacc/versions_wait_visible

Wait for visible
  • Loading branch information...
AlinT committed Jul 18, 2012
2 parents b30f5f7 + 97a3bdf commit 39dce7b0e44ae8425f15fd44f71299cdf84f084e
Showing with 4 additions and 4 deletions.
  1. +2 −2 pages/manage_products_page.py
  2. +2 −2 pages/manage_versions_page.py
@@ -35,7 +35,7 @@ def filter_products_by_name(self, name):
self.selenium.find_element(*self._filter_input_locator).send_keys(name)
self.selenium.find_element(*_filter_suggestion_locator).click()
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_present(*_filter_locator))
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_visible(*_filter_locator))
self.wait_for_ajax()
def filter_products_by_name_without_mouse(self, name):
@@ -45,7 +45,7 @@ def filter_products_by_name_without_mouse(self, name):
filter_input_locator = self.selenium.find_element(*self._filter_input_locator)
filter_input_locator.send_keys(name)
filter_input_locator.send_keys(Keys.RETURN)
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_present(*_filter_locator))
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_visible(*_filter_locator))
self.wait_for_ajax()
def remove_name_filter(self, name):
@@ -35,9 +35,9 @@ def filter_versions_by_name(self, name):
_filter_suggestion_locator = (self._filter_suggestion_locator[0], self._filter_suggestion_locator[1] % {'filter_name': name})
self.selenium.find_element(*self._filter_input_locator).send_keys(name)
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_present(*_filter_suggestion_locator))
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_visible(*_filter_suggestion_locator))
self.selenium.find_element(*_filter_suggestion_locator).click()
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_present(*_filter_locator))
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_visible(*_filter_locator))
self.wait_for_ajax()
def remove_name_filter(self, name):

0 comments on commit 39dce7b

Please sign in to comment.