Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: b720c9bd90
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (33 sloc) 1.454 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 pages.desktop.base import Base
from import By
class Performance(Base):
_perf_hardware_img_locator = (By.CSS_SELECTOR, "#hardware > .row > .span7 > img")
_video_overlay_locator = (By.CSS_SELECTOR, ".mozilla-video-control-overlay")
_video_sources_locator = (By.CSS_SELECTOR, 'video source')
def go_to_page(self):"/firefox/performance/")
billboard_links_list = [
'locator': (By.CSS_SELECTOR, '.menu-bar.billboard > ul > li:nth-of-type(1) > a'),
'url_suffix': '#web',
}, {
'locator': (By.CSS_SELECTOR, '.menu-bar.billboard > ul > li:nth-of-type(2) > a'),
'url_suffix': '#hardware',
def perf_hardware_img_src(self):
return self.selenium.find_element(*self._perf_hardware_img_locator).get_attribute('src')
def is_video_overlay_visible(self):
return self.is_element_present(*self._video_overlay_locator)
def video_sources_list(self):
srcs = []
for source in self.selenium.find_elements(*self._video_sources_locator):
return srcs
Jump to Line
Something went wrong with that request. Please try again.