Selenium IDE

Selenium IDE

  • Docs
  • API
  • Plugins
  • Blog
  • Help

›Introduction

Introduction

  • Getting Started
  • Command-line Runner
  • Control Flow
  • Code Export
  • Frequently Asked Questions

API Reference

  • Commands
  • Arguments

FAQ

How do I record hovers?

Mouseover (a.k.a. hover) actions are difficult to automatically capture as part of a record cycle.

To add a hover to your test, there's a small bit of manual intervention required. And there are two different ways you can do it.

Option 1: Add it while recording

  1. While recording, right click on the element you want to hover over
  2. From the menu that appears click Selenium IDE and then Mouse Over
  3. Confirm the Mouse Over test step is in the correct location in your test (and drag-and-drop it to a different location if need-be)

Option 2: Add it by hand in the test editor

  1. Right click on a test step in the IDE
  2. Select Insert new command
  3. Type mouse over into the Command input field
  4. Type the locator you want to hover over in the Target input field (or click Select target in page and select the element you want to hover over)

Why don't numbers that are typed into a date input field appear correctly?

This issue presents itself when running your tests through the command line runner for Selenium IDE.

To circumvent it, you will need to enable w3c mode, which you can do by passing -c "chromeOptions.w3c=true" as part of launching the runner.

It's worth nothing that enabling w3c mode can impact the performance of Selenium Actions (if your tests end up using them) so only use this mode if you're having problems with date input fields.

How do I get the IDE to wait for a certain condition to be true before proceeding?

There are certain circumstances where the built in wait strategies in the IDE aren't sufficient. When that happens, you can use one of the available explicit wait commands.

  • wait for element editable
  • wait for element present
  • wait for element visible
  • wait for element not editable
  • wait for element not present
  • wait for element not visible

How can I use regex in text verifications?

This is functionality that we'll eventually add (see issue 141 for details). As a workaround, you can use an XPath locator with starts-with and contains keywords.

commandtargetvalue
assertElementPresent//a@[starts-with(.,'you are the') and contains(.,'User to log in today')]

How do I scroll?

There's not a distinct command in Selenium IDE for scrolling because there's not one implemented in Selenium. Instead you can use the scrollTo command in JavaScript to accomplish this by specifying x and y coordinates you'd like to scroll to.

commandtargetvalue
executeScriptwindow.scrollTo(0,1000)

Saving Files

Why is the location I saved my SIDE project to not remembered?

Why do I need to step through a "Save as" flow everytime I want to save my project?

Why do I need to overwrite a previously saved file?

All of these questions are part of the same problem -- as a browser extension Selenium IDE does not have access to the file system. The only way to offer "save" functionality is through downloading the file. This issue will be resolved when the IDE moves to a native application. This will give the IDE premier filesystem access, which will enable it to offer a polished "save" experience.

If you want to stay updated, you can follow along with issue 363.

How to install the IDE behind strict Proxy/Firewall?

In some situations you may not have full public internet access (such as behind a "Corporate Proxy or Firewall"). In those environments you will need to obtain a copy of the built Selenium IDE ZIP file in order to record automated test scripts. This is available on GitHub's "Releases" section here:

https://github.com/SeleniumHQ/selenium-ide/releases

Not all releases include "selenium-ide.zip" since some are just "Source Code" releases. Look for the most recent build that has this zip file. It implies that it is the most recent version submitted to the Chrome and Firefox stores.

Officially signed versions

Downloading the zip file from the project release page provides you with an unsigned ZIP file. You can, alternatively, obtain officially signed installers that play better with "secured environments" from:

  • Firefox Add-Ons
  • Download instructions for the required ".xpi" installer

NOTE: If you already have the plugin installed (e.g., on the laptop you're trying to obtain a copy of the installer for) you'll only see the REMOVE button when trying to access them. So remove them once, get the installers for moving to another unconnected computer, then re-install in your primary device's browsers as needed.

  • Chrome store
  • Download instructions for the required ".crx" installer

NOTE: you can't obtain the ".crx" file directly from the Chrome store. Instead, you need to install it once locally, and then go to the installation directory on your machine to retrieve it.

Why does no save dialog appear once a plugin is attached?

Due to a current Chrome bug, if you don't reply to the emitted message from Selenium IDE, further processing won't happen. In order to workaround the issue, make sure to listen for the action emit with the entity project and reply with undefined:

chrome.runtime.onMessageExternal.addListener((message, sender, sendResponse) => {
  if (message.action === "emit" && message.entity === "project") {
    sendResponse(undefined);
  }
});
Last updated on 6/3/2019
← Code ExportCommands →
Selenium IDE
Docs
Getting StartedAPI ReferenceBuild a Plugin
Community
Slackirc (#selenium)Google group
More
BlogGitHubStarLegacy IDE
Copyright © 2019 Software Freedom Conservancy (SFC)