Fix WebElementWrapper.__eq__
This commit is contained in:
parent
3aa5eb86fb
commit
d6b6afdf11
@ -84,7 +84,9 @@ class WebElementWrapper(collections.abc.MutableMapping):
|
|||||||
self._elem = elem
|
self._elem = elem
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return self._elem == other._elem
|
if not isinstance(other, WebElementWrapper):
|
||||||
|
return NotImplemented
|
||||||
|
return self._elem == other._elem # pylint: disable=protected-access
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
self._check_vanished()
|
self._check_vanished()
|
||||||
|
Loading…
Reference in New Issue
Block a user