Selenium Import is Here!

Yes, you read that correctly! Selenium is a popular, open source browser automation tool set — and for a while now, Ghost Inspector has allowed you to export your tests in Selenium's HTML format. Now, Ghost inspector allows you to import tests in that very same format.

The benefits of this new functionality are two fold: One, Ghost Inspector users now have a complete mechanism for exporting copies of their tests and importing them back into the system at a later time. And two, apart the importing Ghost Inspector tests back in, users now have the ability to import tests they've created with Selenium IDE, Selenium Builder, and other external tools.

How to Import Selenium Tests

Selenium Import

Ghost Inspector allows you to import single tests in Selenium HTML format. This is done from the suite screen (so you must have or create a suite first). Under the "Actions" menu, choose the "Import a Test in Selenium Format (.html)" option. This will present you with a file selection box for choosing the local .html file on your machine.

The import process should take no more than a few seconds. Once complete, you'll be redirected to the test editor screen showing the steps of your imported test. Here you can review the imported steps and make any necessary adjustments. Use the "Save" button to save the test after review. You will be returned to the test's main screen where you can then run the test.

Using External Tools to Create Selenium Tests

While the Selenium import functionality can be used to import Ghost Inspector tests that have been exported, it can also be used to import tests that have been created with Selenium IDE, Selenium Builder, and other external tools.

The vast majority of common selectors and commands used in external Selenium scripts are supported, but it's worth reviewing our official list of supported commands. Also note that Ghost Inspector may remove or convert unnecessary steps. For instance, commands like waitForPageToLoad and waitForElementPresent are not necessary with Ghost Inspector, because these are applied automatically between each step.

While Ghost Inspector currently only imports Selenium HTML format files, the Selenium Builder extension for Firefox has the ability to open various other formats and convert them to the HTML format that Ghost Inspector accepts.

Try out Selenium import today by signing up for a free Ghost Inspector account!
Justin Klemm

Author: Justin Klemm

Justin is the founder and tech lead at Ghost Inspector. He's a seasoned developer with a passion for innovation. When he's not tinkering with the latest web frameworks, Justin enjoys world traveling, good eats and lots of outdoor activity.

Welcome to Our Blog!

Ghost Inspector is an automated browser testing and monitoring service. Here you'll find testing and QA related blog posts written by our team members. Subscribe to stay up to date with our latest posts!

Popular Blog Posts

See All Blog Posts