Skip to content

Commit 57faf6f

Browse files
authored
Merge pull request #702 from seleniumbase/convert-int-to-str-before-typing-text
Convert int/float inputs to strings before typing text
2 parents 57aa49a + cbf271c commit 57faf6f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ coverage==5.3
5858
brython==3.8.10
5959
pyotp==2.4.0
6060
boto==2.49.0
61-
cffi==1.14.2
61+
cffi==1.14.3
6262
rich==7.0.0;python_version>="3.6" and python_version<"4.0"
6363
flake8==3.7.9;python_version<"3.5"
6464
flake8==3.8.3;python_version>="3.5"

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ def add_text(self, selector, text, by=By.CSS_SELECTOR, timeout=None):
377377
if not self.demo_mode and not self.slow_mode:
378378
self.__scroll_to_element(element, selector, by)
379379
pre_action_url = self.driver.current_url
380+
if type(text) is int or type(text) is float:
381+
text = str(text)
380382
try:
381383
if not text.endswith('\n'):
382384
element.send_keys(text)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name='seleniumbase',
57-
version='1.49.16',
57+
version='1.49.17',
5858
description='Web Automation and Test Framework - https://seleniumbase.io',
5959
long_description=long_description,
6060
long_description_content_type='text/markdown',
@@ -150,7 +150,7 @@
150150
'brython==3.8.10',
151151
'pyotp==2.4.0',
152152
'boto==2.49.0',
153-
'cffi==1.14.2',
153+
'cffi==1.14.3',
154154
'rich==7.0.0;python_version>="3.6" and python_version<"4.0"',
155155
'flake8==3.7.9;python_version<"3.5"',
156156
'flake8==3.8.3;python_version>="3.5"',

0 commit comments

Comments
 (0)