Using gotoIf AND contains


Here is how you would use a gotoIf where a variable contains a text string:

storeLocation currentLocation  
storeEval javascript{storedVars['currentLocation'].contains("");} myResult
gotoIf ${myResult} == false skipZScalerLogin

Or, matches a text string variable:

    <td>${myResult} == false</td>

I used this snippet of code to test the current location (URL) of the browser during a test. If the current location didnt match what I expected, I could redirect (gotoIf) the script to another part of the code.