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

Commit

Permalink
returned is_menu_exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
rbillings committed Feb 18, 2016
1 parent 2bf76ad commit c2954cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/mobile/base.py
Expand Up @@ -28,6 +28,10 @@ def __init__(self, base_url, selenium, locale='en-US', **url_kwargs):
url_kwargs['locale'] = locale
super(Base, self).__init__(base_url, selenium, **url_kwargs)

@property
def is_menu_exposed(self):
return 'exposed' in self.selenium.find_element(*self._body_locator).get_attribute('class')

@property
def menu_items(self):
return [self.MenuItem(self.base_url, self.selenium, element)
Expand Down

0 comments on commit c2954cd

Please sign in to comment.