Skip to content

Commit f288bfd

Browse files
committed
Update the SeleniumIDE converter tool
1 parent 60cbc99 commit f288bfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integrations/selenium_ide/convert_ide.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def main():
256256
if '(u"' in line:
257257
uni = "u"
258258
has_unicode = True
259-
command = '''%sself.click_link_text(%s"%s")''' % (
259+
command = '''%sself.click(%s"link=%s")''' % (
260260
whitespace, uni, link_text)
261261
seleniumbase_lines.append(command)
262262
continue
@@ -468,7 +468,7 @@ def main():
468468
# quote_type = data.group(1)
469469
link_text = data.group(2)
470470
if int(line_num) < num_lines - 2:
471-
regex_string = (r'''^\s*self.click_link_text\(["|']'''
471+
regex_string = (r'''^\s*self.click\(["|']link='''
472472
+ re.escape(link_text) + r'''["|']\)\s*$''')
473473
data2 = re.match(regex_string, lines[line_num+1])
474474
if data2:
@@ -489,7 +489,7 @@ def main():
489489
out_file = codecs.open(converted_file_name, "w+")
490490
out_file.writelines(seleniumbase_code)
491491
out_file.close()
492-
print("%s successfully created from %s\n" % (
492+
print('>>> "%s" successfully created from %s\n' % (
493493
converted_file_name, webdriver_python_file))
494494

495495

0 commit comments

Comments
 (0)