Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions integrations/selenium_ide/convert_ide.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Converts a Selenium IDE WebDriver-exported test file into a SeleniumBase file
Converts a Selenium IDE WebDriver-exported test file into a SeleniumBase file.
Works with Katalon Recorder scripts: http://www.katalon.com/automation-recorder

Usage:
python convert_ide.py [MY_TEST.py]
Expand Down Expand Up @@ -437,7 +438,7 @@ def main():
if 'self.base_url' in line:
line = line.replace("self.base_url", '"%s"' % ide_base_url)

# Convert driver. to self.driver. if not already done
# Convert "driver." to "self.driver." if not already done
if 'driver.' in line and 'self.driver' not in line:
line = line.replace('driver.', 'self.driver.')

Expand Down
3 changes: 1 addition & 2 deletions seleniumbase/fixtures/xpath_to_css.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def _handle_brackets_in_strings(xpath):
new_xpath += chunks[chunk_num]
if chunk_num != len_chunks - 1:
new_xpath += '"'
xpath = new_xpath
return xpath
return new_xpath


def _filter_xpath_grouping(xpath):
Expand Down