Fix WebElementWrapper.__delitem__.
This commit is contained in:
parent
b850df090b
commit
5c58641c81
@ -137,7 +137,7 @@ class WebElementWrapper(collections.abc.MutableMapping):
|
|||||||
self._check_vanished()
|
self._check_vanished()
|
||||||
if key not in self:
|
if key not in self:
|
||||||
raise KeyError(key)
|
raise KeyError(key)
|
||||||
self.removeAttribute(key)
|
self._elem.removeAttribute(key)
|
||||||
|
|
||||||
def __contains__(self, key):
|
def __contains__(self, key):
|
||||||
self._check_vanished()
|
self._check_vanished()
|
||||||
|
Loading…
Reference in New Issue
Block a user