Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reordered imports, and removed superfluous assertion message.

  • Loading branch information...
commit c46449b094c136e700894f43500a5eeb14fd216d 1 parent 757232b
@davehunt davehunt authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 page.py
View
5 page.py
@@ -34,8 +34,8 @@
#
# ***** END LICENSE BLOCK *****
-from unittestzero import Assert
from selenium.webdriver.support.ui import WebDriverWait
+from unittestzero import Assert
class Page(object):
@@ -49,8 +49,7 @@ def is_the_current_page(self):
if self._page_title:
WebDriverWait(self.selenium, 10).until(lambda s: self.selenium.title)
- Assert.equal(self.selenium.title, self._page_title,
- "Expected page title: %s. Actual page title: %s" % (self._page_title, self.selenium.title))
+ Assert.equal(self.selenium.title, self._page_title)
return True
def is_element_visible(self, locator):
Please sign in to comment.
Something went wrong with that request. Please try again.