Skip to content

v3.3.0

Compare
Choose a tag to compare
@corevo corevo released this 30 Aug 18:07
· 889 commits to master since this release
eed3199

Execute Script and Control Flow changes

When we've introduced execute script and the different control flow commands, we've had the IDE browser playback in mind. But now, more than ever we are close to playback on WebDriver.
WebDriver's own driver.executeScript allows non-primitives variables to pass to it's scripts (objects, arrays, functions etc...), in order to support that we'll have to make a small change to the way scripts work.

Variable interpolation, no longer interpolates into strings.

That means, that when you execute a script, you no longer have to surround the variables with quotes, for example:
execute script | "${x}" + " world!" will become execute script | ${x} + " world!".
Variables will automatically be treated according to their types, which will allows us to pass objects and arrays as well.

Breaking Change

Selenium IDE will try to mitigate the change by converting your scripts (e.g. "${x}" -> ${x}).
Upgrading selenium-side-runner to latest version is required for newer scripts to work, this can be achieved by running:
npm i -g selenium-side-runner@latest

Fixes

  • Changed play suite keyboard shortcut from Control+Alt+R to Control+Shift+R
  • Fixed an issue with the runner not being able to send special keys with send keys command