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

Commit

Permalink
Test for searching on QMO tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Billings authored and Rebecca Billings committed Sep 17, 2012
1 parent 9f73c63 commit 79e111b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/community.py
Expand Up @@ -4,13 +4,20 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.


from selenium.webdriver.common.by import By

from base import BasePage from base import BasePage




class CommunityPage(BasePage): class CommunityPage(BasePage):


_page_title = u'Community | QMO \u2013 quality.mozilla.org' _page_title = u'Community | QMO \u2013 quality.mozilla.org'
_tag_locator = (By.CSS_SELECTOR, '#tag_cloud-3 a')


def go_to_community_page(self): def go_to_community_page(self):
self.selenium.get(self.testsetup.base_url + '/community') self.selenium.get(self.testsetup.base_url + '/community')
self.is_the_current_page self.is_the_current_page

@property
def find_tag_link(self):
return self.selenium.find_element(*self._tag_locator)

0 comments on commit 79e111b

Please sign in to comment.