Skip to content

Commit 34063b0

Browse files
committed
Update the selenium_ide script conversion tool
1 parent bf9203e commit 34063b0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

seleniumbase/utilities/selenium_ide/convert_ide.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,14 @@ def main():
427427
if data:
428428
whitespace = data.group(1)
429429
xpath = '%s' % data.group(2)
430+
if './/*[normalize-space(text())' in xpath and (
431+
"normalize-space(.)='" in xpath):
432+
x_match = re.match(
433+
r'''^[\S\s]+normalize-'''
434+
r'''space\(\.\)=\'([\S\s]+)\'\]\)[\S\s]+''', xpath)
435+
if x_match:
436+
partial_link_text = x_match.group(1)
437+
xpath="partial_link=%s" % partial_link_text
430438
uni = ""
431439
if '(u"' in line:
432440
uni = "u"

0 commit comments

Comments
 (0)