Convert int/float inputs to strings before typing text
- Convert integer inputs to strings before typing text
- Also update the
cffi
requirement tocffi==1.14.3
The fix for this is simple:
if type(text) is int or type(text) is float:
text = str(text)
This conversion is necessary to prevent errors from occurring in:
if not text.endswith('\n'):
element.send_keys(text)
else:
element.send_keys(text[:-1])
element.send_keys(Keys.RETURN)
Most text-typing methods already fixed this. Now they all fix it.
- Fixed methods:
self.add_text(selector, text)
self.send_keys(selector, text) # Same as self.add_text()