Skip to content

Commit 53c3002

Browse files
authored
Merge pull request #483 from seleniumbase/update-xpath-to-css-converter
Update the XPath-to-CSS converter
2 parents 22a5a69 + 4e8e747 commit 53c3002

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pip>=19.3.1
22
setuptools>=44.0.0;python_version<"3"
33
setuptools>=45.0.0;python_version>="3"
4-
setuptools-scm>=3.4.0
4+
setuptools-scm>=3.4.1
55
wheel>=0.33.6
66
six==1.14.0
77
nose==1.3.7

seleniumbase/fixtures/xpath_to_css.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def _get_raw_css_from_xpath(xpath):
107107
match['mvalue'])
108108
elif match['contained']:
109109
if match['cattr'].startswith("@"):
110-
attr = "[%s*=%s]" % (match['cattr'].replace("@", ""),
111-
match['cvalue'])
110+
attr = '[%s*="%s"]' % (match['cattr'].replace("@", ""),
111+
match['cvalue'])
112112
elif match['cattr'] == "text()":
113113
attr = ":contains(%s)" % match['cvalue']
114114
else:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
setup(
4747
name='seleniumbase',
48-
version='1.34.22',
48+
version='1.34.23',
4949
description='Fast, Easy, and Reliable Browser Automation & Testing.',
5050
long_description=long_description,
5151
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)