File tree 2 files changed +4
-4
lines changed
integrations/selenium_ide
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
- Converts a Selenium IDE WebDriver-exported test file into a SeleniumBase file
2
+ Converts a Selenium IDE WebDriver-exported test file into a SeleniumBase file.
3
+ Works with Katalon Recorder scripts: http://www.katalon.com/automation-recorder
3
4
4
5
Usage:
5
6
python convert_ide.py [MY_TEST.py]
@@ -437,7 +438,7 @@ def main():
437
438
if 'self.base_url' in line :
438
439
line = line .replace ("self.base_url" , '"%s"' % ide_base_url )
439
440
440
- # Convert driver. to self.driver. if not already done
441
+ # Convert " driver." to " self.driver." if not already done
441
442
if 'driver.' in line and 'self.driver' not in line :
442
443
line = line .replace ('driver.' , 'self.driver.' )
443
444
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ def _handle_brackets_in_strings(xpath):
52
52
new_xpath += chunks [chunk_num ]
53
53
if chunk_num != len_chunks - 1 :
54
54
new_xpath += '"'
55
- xpath = new_xpath
56
- return xpath
55
+ return new_xpath
57
56
58
57
59
58
def _filter_xpath_grouping (xpath ):
You can’t perform that action at this time.
0 commit comments