Skip to content

Commit c5d2c04

Browse files
authored
Merge pull request #416 from seleniumbase/pytest-update
Update pytest, portalocker, and improve some error-handling
2 parents a6ed380 + 3d07057 commit c5d2c04

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ selenium==3.141.0
1313
pluggy>=0.13.0
1414
attrs>=19.3.0
1515
pytest>=4.6.6;python_version<"3"
16-
pytest>=5.2.2;python_version>="3"
16+
pytest>=5.2.4;python_version>="3"
1717
pytest-cov>=2.8.1
1818
pytest-forked>=1.1.3
1919
pytest-html==1.22.0
@@ -25,7 +25,7 @@ pytest-xdist>=1.30.0
2525
parameterized>=0.7.0
2626
beautifulsoup4>=4.6.0
2727
atomicwrites>=1.3.0
28-
portalocker>=1.5.1
28+
portalocker>=1.5.2
2929
cryptography>=2.8
3030
asn1crypto>=1.2.0
3131
pyopenssl>=19.0.0

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ def update_text(self, selector, new_value, by=By.CSS_SELECTOR,
305305
pass # Clearing the text field first isn't critical
306306
self.__demo_mode_pause_if_active(tiny=True)
307307
pre_action_url = self.driver.current_url
308+
if type(new_value) is int or type(new_value) is float:
309+
new_value = str(new_value)
308310
try:
309311
if not new_value.endswith('\n'):
310312
element.send_keys(new_value)
@@ -3362,7 +3364,7 @@ def __get_exception_message(self):
33623364
elif hasattr(exception_info, 'message'):
33633365
exc_message = exception_info.message
33643366
else:
3365-
exc_message = '(Unknown Exception)'
3367+
exc_message = sys.exc_info()
33663368
return exc_message
33673369

33683370
def __get_improved_exception_message(self):

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
setup(
4747
name='seleniumbase',
48-
version='1.32.23',
48+
version='1.32.24',
4949
description='Fast, Easy, and Reliable Browser Automation & Testing.',
5050
long_description=long_description,
5151
long_description_content_type='text/markdown',
@@ -96,7 +96,7 @@
9696
'pluggy>=0.13.0',
9797
'attrs>=19.3.0',
9898
'pytest>=4.6.6;python_version<"3"', # For Python 2 compatibility
99-
'pytest>=5.2.2;python_version>="3"',
99+
'pytest>=5.2.4;python_version>="3"',
100100
'pytest-cov>=2.8.1',
101101
'pytest-forked>=1.1.3',
102102
'pytest-html==1.22.0', # Keep at 1.22.0 unless tested on Windows
@@ -108,7 +108,7 @@
108108
'parameterized>=0.7.0',
109109
'beautifulsoup4>=4.6.0', # Keep at >=4.6.0 while using "bs4"
110110
'atomicwrites>=1.3.0',
111-
'portalocker>=1.5.1',
111+
'portalocker>=1.5.2',
112112
'cryptography>=2.8',
113113
'asn1crypto>=1.2.0',
114114
'pyopenssl>=19.0.0',

0 commit comments

Comments
 (0)