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

Commit

Permalink
Removed click_search_field, removed blank spaces, extra line, unused …
Browse files Browse the repository at this point in the history
…imports. Updated css.selector for search button.
  • Loading branch information
rbillings committed Aug 20, 2012
1 parent adc1bf7 commit 7e10fc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 2 additions & 7 deletions pages/regions/header.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ class HeaderRegion(Page):
_events_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(4) a') _events_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(4) a')
_media_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(5) a') _media_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(5) a')
_docs_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(6) a') _docs_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(6) a')
_search_field_locator = (By.CSS_SELECTOR, '#search input#s' ) _search_button_locator = (By.CSS_SELECTOR, '#search button')
_search_button_locator = (By.CSS_SELECTOR, '#search fieldset input#s')

def click_community_link(self): def click_community_link(self):
self.selenium.find_element(*self._community_link_locator).click() self.selenium.find_element(*self._community_link_locator).click()
from pages.community import CommunityPage from pages.community import CommunityPage
Expand All @@ -37,10 +36,6 @@ def click_docs_link(self):
from pages.docs import DocsPage from pages.docs import DocsPage
return DocsPage(self.testsetup) return DocsPage(self.testsetup)


def click_search_field(self):
self.selenium.find_element(*self._search_field_locator).click()
from pages.home import HomePage

def click_search_button(self): def click_search_button(self):
self.selenium.find_element(*self._search_button_locator).click() self.selenium.find_element(*self._search_button_locator).click()
from pages.search_results import SearchResultsPage from pages.search_results import SearchResultsPage
Expand Down
3 changes: 1 addition & 2 deletions pages/search_results.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@




class SearchResultsPage(BasePage): class SearchResultsPage(BasePage):

_page_title = u'Search results'


_page_title = u'Search results'


def go_to_docs_page(self): def go_to_docs_page(self):
self.selenium.get(self.testsetup.base_url + '/?s') self.selenium.get(self.testsetup.base_url + '/?s')
Expand Down

0 comments on commit 7e10fc9

Please sign in to comment.