Skip to content

Files

Latest commit

d411c4b · Jul 25, 2018

History

History

selenium_ide

Converting Katalon/Selenium IDE recordings into SeleniumBase test scripts

Katelon Recorder / Selenium IDE (the successor to the old Selenium IDE) is a tool that allows you to record and playback actions performed inside a web browser. It's available as a downloadable Chrome extension and a downloadable Firefox extension. Katelon Recorder comes with an option to export recordings as various WebDriver test scripts, one of which is Python 2 (WebDriver + unittest). Unfortunately, these natively-exported scripts can be very messy and don't always run reliably. The purpose of this converter is to clean up and improve the scripts so that they can be used in production-level environments.

Step 1: Make a recording with Katelon Recorder

Step 2: Export your recording as a Python 2 Webdriver script

  • {} Export => Python 2 (WebDriver + unittest) => Save As File

Step 3: Drop your exported file into the selenium_ide folder

  • Just copy & paste!

(The full path of the folder is SeleniumBase/integrations/selenium_ide)

Step 4: Run convert_ide.py on the exported Python script

python convert_ide.py [MY_TEST.py]

You should see a [MY_TEST_SB.py] file appear in the folder. (_SB is added to the file name so that the original file stays intact in case you still need it.)

Step 5: Enjoy your new clean & reliable SeleniumBase test script

  • You can now copy your new SeleniumBase test script into your test suite. It's ready to be run!