Remove assert

This commit is contained in:
Luca Benci 2017-10-31 23:20:13 +01:00
parent 2947b75ab9
commit 370405c0ed

View File

@ -130,7 +130,6 @@ class WebKitElement(webelem.AbstractWebElement):
"""Get the text caret position for the current element."""
self._check_vanished()
pos = self._elem.evaluateJavaScript('this.selectionStart')
assert isinstance(pos, (int, float, type(None)))
if pos is None:
return 0
return int(pos)