Permalink
Browse files

Removed click_search_field, removed blank spaces, extra line, unused …

…imports. Updated css.selector for search button.
  • Loading branch information...
1 parent adc1bf7 commit 7e10fc9a225d3bec6acb51c4f8008a2b9255a1d7 @rbillings rbillings committed Aug 20, 2012
Showing with 3 additions and 9 deletions.
  1. +2 −7 pages/regions/header.py
  2. +1 −2 pages/search_results.py
View
@@ -14,9 +14,8 @@ class HeaderRegion(Page):
_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')
_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 fieldset input#s')
-
+ _search_button_locator = (By.CSS_SELECTOR, '#search button')
+
def click_community_link(self):
self.selenium.find_element(*self._community_link_locator).click()
from pages.community import CommunityPage
@@ -37,10 +36,6 @@ def click_docs_link(self):
from pages.docs import DocsPage
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):
self.selenium.find_element(*self._search_button_locator).click()
from pages.search_results import SearchResultsPage
View
@@ -10,9 +10,8 @@
class SearchResultsPage(BasePage):
-
- _page_title = u'Search results'
+ _page_title = u'Search results'
def go_to_docs_page(self):
self.selenium.get(self.testsetup.base_url + '/?s')

0 comments on commit 7e10fc9

Please sign in to comment.