Skip to content

Commit 2a6fe5f

Browse files
committed
Update the Selenium IDE converter script.
1 parent 3d0425e commit 2a6fe5f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

integrations/selenium_ide/convert_ide.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ def main():
4646
has_unicode = True
4747
continue
4848

49-
# Handle class definition
49+
# Keep SeleniumBase classes if already used in the test script
50+
data = re.findall('^class\s\S+\(BaseCase\):\s*$', line)
51+
if data:
52+
seleniumbase_lines.append(line)
53+
continue
54+
55+
# Have unittest.TestCase classes inherit BaseCase instead
5056
data = re.findall('^class\s\S+\(unittest\.TestCase\):\s*$', line)
5157
if data:
5258
data = data[0].replace("unittest.TestCase", "BaseCase")

0 commit comments

Comments
 (0)