Merge pull request #510 from seleniumbase/fix-xpath-to-css-converter

Fix the xpath-to-css converter
This commit is contained in:
Michael Mintz 2020-03-15 09:51:03 -04:00 committed by GitHub
commit 5c7f26befa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -103,8 +103,8 @@ def _get_raw_css_from_xpath(xpath):
elif match['mattr']:
if match["mvalue"].find(" ") != -1:
match["mvalue"] = "\"%s\"" % match["mvalue"]
attr = "[%s=%s]" % (match['mattr'].replace("@", ""),
match['mvalue'])
attr = '[%s="%s"]' % (match['mattr'].replace("@", ""),
match['mvalue'])
elif match['contained']:
if match['cattr'].startswith("@"):
attr = '[%s*="%s"]' % (match['cattr'].replace("@", ""),

View File

@ -45,7 +45,7 @@ if sys.argv[-1] == 'publish':
setup(
name='seleniumbase',
version='1.35.9',
version='1.35.10',
description='Fast, Easy, and Reliable Browser Automation & Testing.',
long_description=long_description,
long_description_content_type='text/markdown',