Skip to content

Commit

Permalink
Don't use __eq__, the one implemented for Selenium WebElement doesn't…
Browse files Browse the repository at this point in the history
… handle being called with None.
  • Loading branch information
tirsen authored and Jon Tirsen committed Sep 9, 2014
1 parent 745bc0d commit c079b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holmium/core/pageobject.py
Expand Up @@ -209,7 +209,7 @@ def wrap(*args, **kwargs):
fluent wrapper
"""
resp = attr(*args, **kwargs)
if None == resp:
if resp is None:
resp = self
return resp

Expand Down

0 comments on commit c079b04

Please sign in to comment.