Skip to content

Commit 6af020b

Browse files
authored
Merge pull request #162 from seleniumbase/small_updates
Small updates
2 parents 5164319 + f472d9e commit 6af020b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

integrations/selenium_ide/convert_ide.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""
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
34
45
Usage:
56
python convert_ide.py [MY_TEST.py]
@@ -437,7 +438,7 @@ def main():
437438
if 'self.base_url' in line:
438439
line = line.replace("self.base_url", '"%s"' % ide_base_url)
439440

440-
# Convert driver. to self.driver. if not already done
441+
# Convert "driver." to "self.driver." if not already done
441442
if 'driver.' in line and 'self.driver' not in line:
442443
line = line.replace('driver.', 'self.driver.')
443444

seleniumbase/fixtures/xpath_to_css.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def _handle_brackets_in_strings(xpath):
5252
new_xpath += chunks[chunk_num]
5353
if chunk_num != len_chunks - 1:
5454
new_xpath += '"'
55-
xpath = new_xpath
56-
return xpath
55+
return new_xpath
5756

5857

5958
def _filter_xpath_grouping(xpath):

0 commit comments

Comments
 (0)