Fix WebElementWrapper.__delitem__.

This commit is contained in:
Florian Bruhin 2015-08-02 23:47:35 +02:00
parent b850df090b
commit 5c58641c81

View File

@ -137,7 +137,7 @@ class WebElementWrapper(collections.abc.MutableMapping):
self._check_vanished()
if key not in self:
raise KeyError(key)
self.removeAttribute(key)
self._elem.removeAttribute(key)
def __contains__(self, key):
self._check_vanished()