Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: b50d60115f
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (21 sloc) 0.902 kB
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
from import By
from base import BasePage
class SearchResultsPage(BasePage):
_page_title = u'Search results'
_search_text_locator = (By.ID, 'content-main')
def search_results_page(self):
self.selenium.get(self.testsetup.base_url + '/?s')
def is_page_title_correct(self):
return self.selenium.get_title() == self._page_title
def search_text(self):
return self.selenium.find_element(*self._search_text_locator).text
def results(self):
return self.selenium.find_elements(By.CSS_SELECTOR, "#content-main > article")
Jump to Line
Something went wrong with that request. Please try again.