Skip to content

Commit e47087c

Browse files
authored
Merge pull request #515 from seleniumbase/fix-xpath-to-css-converter
Fix the XPath-to-CSS Selector converter
2 parents 129efcc + 893b6e1 commit e47087c

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pip>=20.0.2
2-
setuptools>=44.0.0;python_version<"3"
3-
setuptools>=46.0.0;python_version>="3"
2+
setuptools>=44.0.0;python_version<"3.5"
3+
setuptools>=46.0.0;python_version>="3.5"
44
setuptools-scm>=3.5.0
55
wheel>=0.34.2
66
six==1.14.0
@@ -11,10 +11,10 @@ chardet==3.0.4
1111
urllib3==1.25.8
1212
requests==2.23.0
1313
selenium==3.141.0
14-
pluggy>=0.13.1
14+
pluggy==0.13.1
1515
attrs>=19.3.0
16-
pytest==4.6.9;python_version<"3"
17-
pytest==5.3.5;python_version>="3"
16+
pytest==4.6.9;python_version<"3.5"
17+
pytest==5.3.5;python_version>="3.5"
1818
pytest-cov==2.8.1
1919
pytest-forked==1.1.3
2020
pytest-html==1.22.1;python_version<"3.6"
@@ -36,7 +36,7 @@ packaging>=20.3
3636
pygments==2.5.2;python_version<"3.5"
3737
pygments==2.6.1;python_version>="3.5"
3838
colorama==0.4.3
39-
coverage==5.0.3
39+
coverage==5.0.4
4040
pymysql==0.9.3
4141
pyotp==2.3.0
4242
boto==2.49.0

seleniumbase/fixtures/xpath_to_css.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ def _get_raw_css_from_xpath(xpath):
101101
elif match['mattr'] in ["text()", "."]:
102102
attr = ":contains(^%s$)" % match['mvalue']
103103
elif match['mattr']:
104-
if match["mvalue"].find(" ") != -1:
105-
match["mvalue"] = "\"%s\"" % match["mvalue"]
106104
attr = '[%s="%s"]' % (match['mattr'].replace("@", ""),
107105
match['mvalue'])
108106
elif match['contained']:

setup.py

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

4646
setup(
4747
name='seleniumbase',
48-
version='1.36.1',
48+
version='1.36.2',
4949
description='Fast, Easy, and Reliable Browser Automation & Testing.',
5050
long_description=long_description,
5151
long_description_content_type='text/markdown',
@@ -93,10 +93,10 @@
9393
'urllib3==1.25.8', # Must stay in sync with "requests"
9494
'requests==2.23.0',
9595
'selenium==3.141.0',
96-
'pluggy>=0.13.1',
96+
'pluggy==0.13.1',
9797
'attrs>=19.3.0',
98-
'pytest==4.6.9;python_version<"3"', # For Python 2 compatibility
99-
'pytest==5.3.5;python_version>="3"',
98+
'pytest==4.6.9;python_version<"3.5"', # For Python 2 compatibility
99+
'pytest==5.3.5;python_version>="3.5"',
100100
'pytest-cov==2.8.1',
101101
'pytest-forked==1.1.3',
102102
'pytest-html==1.22.1;python_version<"3.6"',
@@ -118,7 +118,7 @@
118118
'pygments==2.5.2;python_version<"3.5"',
119119
'pygments==2.6.1;python_version>="3.5"',
120120
'colorama==0.4.3',
121-
'coverage==5.0.3',
121+
'coverage==5.0.4',
122122
'pymysql==0.9.3',
123123
'pyotp==2.3.0',
124124
'boto==2.49.0',

0 commit comments

Comments
 (0)