Permalink
Browse files

fix except issue

  • Loading branch information...
1 parent d8dfee0 commit 03a22f7be67c706ac79420072ad8bcdd1e3281e4 Alex Lakatos committed Feb 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 page.py
View
4 page.py
@@ -27,11 +27,11 @@ def is_the_current_page(self):
Assert.equal(self.selenium.title, self._page_title)
return True
-
+
def is_element_visible(self, *locator):
try:
return self.selenium.find_element(*locator).is_displayed()
- except NoSuchElementException, ElementNotVisibleException:
+ except (NoSuchElementException, ElementNotVisibleException):
return False
def is_element_present(self, *locator):

0 comments on commit 03a22f7

Please sign in to comment.