Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Fix for test_group_description_edit
Browse files Browse the repository at this point in the history
  • Loading branch information
viorelaioia committed Apr 28, 2017
1 parent 8cfba1f commit 52bff7a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pages/search.py
Expand Up @@ -14,7 +14,7 @@
class Search(Base):

_result_locator = (By.CSS_SELECTOR, '#content-wrapper > #main > div.row > div.result')
_search_button_locator = (By.CSS_SELECTOR, '.btn.primary:nth-of-type(1)')
_search_button_locator = (By.CSS_SELECTOR, 'button[type = "submit"]')
_advanced_options_button_locator = (By.CSS_SELECTOR, '.btn.primary:nth-of-type(2)')
_advanced_options_locator = (By.CSS_SELECTOR, '.search-options')
_non_vouched_only_checkbox_locator = (By.ID, 'id_nonvouched_only')
Expand Down Expand Up @@ -44,11 +44,6 @@ def no_results_message_body(self):
def advanced_options_shown(self):
return self.is_element_visible(*self._advanced_options_locator)

def search_for(self, search_term):
element = self.selenium.find_element(*self._search_box_locator)
element.send_keys(search_term)
self.selenium.find_element(*self._search_button_locator).click()

def toggle_advanced_options(self):
self.selenium.find_element(*self._advanced_options_button_locator).click()

Expand All @@ -64,6 +59,7 @@ def search_results(self):
self.selenium.find_elements(*self._result_locator)]

def open_group(self, name):
self.wait_for_element_visible(*self._search_button_locator)
self.selenium.find_element_by_link_text(name).click()
from pages.group_info_page import GroupInfoPage
group_info_page = GroupInfoPage(self.base_url, self.selenium)
Expand Down

0 comments on commit 52bff7a

Please sign in to comment.