Addition opearation not working in selenium IDE

23 views
Skip to first unread message

alainam...@gmail.com

unread,
Aug 31, 2015, 1:47:24 AM8/31/15
to Selenium Users
I am running a command storeEval | javascript{storedVars['a'] + storedVars['b']} | Total |  Where a=5 and b=3 but instead of returning 8 it is returning 53.  Please tell what mistake i am doing and do we need to do something specific to execute javascript in selenium IDE

Manoj Kumar

unread,
Aug 31, 2015, 7:59:59 AM8/31/15
to Selenium Users

It is considering as the String and appending them try to use without single quotes that might work. 

Thanks and regards
Manoj Kumar Gudala

alainam...@gmail.com

unread,
Sep 1, 2015, 1:56:45 AM9/1/15
to Selenium Users
Not working without quotes, It says reference 'a' is not defined.
Reply all
Reply to author
Forward
0 new messages