Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium IDE gotoIF comparing vchar strings

I have 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 IS THE WHOLE sequence----------

like image 358
michael Reid Avatar asked Feb 01 '13 01:02

michael Reid


2 Answers

Additionally, for testing for "NOT EQUAL" use this syntax:

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

Having single quotes around both the variable and the operand IS important.

like image 61
Jay J Avatar answered Nov 16 '22 18:11

Jay J


The correct format is.

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

Single quotes... Grr!

like image 34
michael Reid Avatar answered Nov 16 '22 19:11

michael Reid