Hi, how can I compare two variable (number):
storeText | xpath=abc | a
storeText | xpath=xyz | b
I try use:
storeEval | storedVars[‘a’]>storedVars[‘b’] | true
but it does not work me. Thanks. O.
Hi, how can I compare two variable (number):
storeText | xpath=abc | a
storeText | xpath=xyz | b
I try use:
storeEval | storedVars[‘a’]>storedVars[‘b’] | true
but it does not work me. Thanks. O.
Hi, just use “if” command and for variable use syntax like:
${a}
and not like:
storedVars[‘a’]
So, Your if statement should look like this:
if | ${a}>${b}
click | element1
else
click | element2
endIf
Try
store | aaa | a
store | bbb | b
storeEval | storedVars['a']<storedVars['b'] | c