SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.8k stars 762 forks source link

Verify Element Present Doesn't Return/Store Value ( Can't be used with IF clause ) #1695

Open marcellovi opened 1 year ago

marcellovi commented 1 year ago

🐛 Bug Report

Any Verify command doesn't return any value. It can't be used on IF.

To Reproduce

This example shows the difference between the commands "verify element present" and "store". In the case of any "verify" commands, I am not able to get any return. selenium_ide-err2

This example shows that since it is not returning any value it can't be used on if and shows the error ( if anyone knows how to fix it ). selenium_ide-err Note: for the if as a target I also tried : if | ${chromeBtn} == ${chromeBtn} -> Fail ( Unexpected token '{' ) if ${chromeBtn} == true -> Fail ( Unexpected token '{' ) if | 1 == 1 -> success ( worked - if does work )

Expected behavior

I imagined that much like the store command the "verify" commands would return a value ( true, false) that could be used in a conditional scenario.

Project file reproducing this issue (highly encouraged)

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

Environment

OS: Windows 10? OSX? - Selenium IDE Version: LTS Selenium SIDE Runner Version: LTS Node version: 18.17.1 Browser: Chrome Browser Version: 116.0.5845.96 (Official Build) (64-bit)