Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Manage products page
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac committed Jul 12, 2012
1 parent fada11d commit 97a3bdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/manage_products_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit 97a3bdf

Please sign in to comment.