selenium-ide: Cannot use variables in Selenium IDE

πŸ’₯ Regression Report

A clear and concise description of what the regression is.

The keyword to call variables ${} is no longer recognized by Selenium, and is treated as a string of text instead. Encountered this issue while testing an automated bot after following a tutorial.

Last working version

Worked up to version: Unknown given I haven’t used Selenium up until recently, but based on third-party sources, it worked at least until 02/28/2023. https://learn.microsoft.com/en-us/power-automate/desktop-flows/inputs-outputs-web https://www.ibm.com/docs/en/cloud-app-management/2019.3.0?topic=test-passing-variable-values-selenium-script

Stopped working in version: 3.17.4

To Reproduce

Steps to reproduce the behavior:

Add a store command with a target variable and a number of your choice, then an echo command that is supposed to call the variable. Like so :

Command|Target|Value store | number | 1 echo |${number}|

In the example above, the output is β€œ${number}”.

Screenshot_20230808_141429

Expected behavior

A clear and concise description of what you expected to happen.

The echo command should return the number β€œ1”.

Project file reproducing this issue (highly encouraged)

Please provide a project file .side that reproduces this issue.

Github would not let me post the file, so I changed the filetype to txt. probtrimmed.txt

It was trimmed down to include only the code that errored, and I added comments to describe what the code does.

Environment

OS: Ubuntu Studio 22.04 Selenium IDE Version: 3.17.4 Selenium SIDE Runner Version: None, using only the WebExtension Node version: None Browser: Firefox Browser Version: 115.0.2 (64-bit)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

@Pun-slinger yep, they all worked. β€œTimes” command is having the same issue so that should be next to be added

Edit: Assert Selected Label need added

@Pun-slinger - I added some of them in this commit:

https://github.com/SeleniumHQ/selenium-ide/commit/747b3437af2535645723c988525274f48a73c29a#diff-9e4aa485e596920bbae5fa60cfc15763794c4d5bfb1801ae935cf450fb4c61ff

Let me know if this helps for a few of them and we can just keep adding the things.