Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3c0c401308
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (27 sloc) 1.39 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 http://mozilla.org/MPL/2.0/.
from page import Page
from selenium.webdriver.common.by import By
class HeaderRegion(Page):
_community_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(3) 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')
_docs_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(6) a')
def click_community_link(self):
self.selenium.find_element(*self._community_link_locator).click()
from pages.community import CommunityPage
return CommunityPage(self.testsetup)
def click_events_link(self):
self.selenium.find_element(*self._events_link_locator).click()
from pages.events import EventsPage
return EventsPage(self.testsetup)
def click_media_link(self):
self.selenium.find_element(*self._media_link_locator).click()
from pages.media import MediaPage
return MediaPage(self.testsetup)
def click_docs_link(self):
self.selenium.find_element(*self._docs_link_locator).click()
from pages.docs import DocsPage
return DocsPage(self.testsetup)
Jump to Line
Something went wrong with that request. Please try again.