Skip to content

Commit 8ca67d9

Browse files
authored
Merge pull request #1176 from seleniumbase/update-the-xpath-to-css-converter
Update the XPath-to-CSS converter
2 parents 3130a13 + 67ce1df commit 8ca67d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "2.3.12"
2+
__version__ = "2.3.13"

seleniumbase/fixtures/xpath_to_css.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _get_raw_css_from_xpath(xpath):
102102
elif match["mattr"] == "@class":
103103
attr = ".%s" % match["mvalue"].replace(" ", ".")
104104
elif match["mattr"] in ["text()", "."]:
105-
attr = ":contains(^%s$)" % match["mvalue"]
105+
attr = ":contains('%s')" % match["mvalue"]
106106
elif match["mattr"]:
107107
attr = '[%s="%s"]' % (
108108
match["mattr"].replace("@", ""),

0 commit comments

Comments
 (0)