Selenium IDE gotoIF comparing vchar strings

I tried the following

gotoIf "${oneoff}"=="Jeff Della Rosa" 
gotoIf ${oneoff}=="Jeff Della Rosa" 
gotoIf ${oneoff}=={"Jeff Della Rosa"} <-- not sure why, just trying anything.

-------- HERE THE WHOLE sequence ----------

+5
source share
2 answers

The correct format.

gotoIf '${oneoff}'=='Jeff Della Rosa'

Single quotes ... Grr!

+4
source

Also, to test "NOT EQUAL" use this syntax:

gotoIf '${variable}'!='the string operand' target_label

The presence of single quotes around the variable and the IS operand is important.

+5
source

All Articles