Permalink
Browse files

Merge pull request #259 from AndreiH/tabzilla

Changed method for toggle_tabzilla_dropdown()
  • Loading branch information...
2 parents 42b146f + 8b3fcce commit bfe6ab922b96d8ed236db778dc83a02db2573eda @bebef1987 bebef1987 committed Dec 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 pages/desktop/base.py
View
@@ -106,9 +106,9 @@ class Header(Page):
]
def toggle_tabzilla_dropdown(self):
- toggle_state = self.selenium.execute_script('Tabzilla.close()')
self.selenium.find_element(*self._tabzilla).click()
- WebDriverWait(self.selenium, 7).until(lambda state: toggle_state == state.execute_script('Tabzilla.open()'))
+ WebDriverWait(self.selenium, self.timeout).until(
+ lambda s: s.find_element(*self._tabzilla).get_attribute('class') == "tabzilla-opened")
@property
def is_tabzilla_panel_visible(self):

0 comments on commit bfe6ab9

Please sign in to comment.