Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
dainova
Active particpant
Active particpant
Posts : 19
Join date : 2012-02-23

if (storedVars['var1'] == true   in Rollups?  will it work Empty if (storedVars['var1'] == true in Rollups? will it work

Fri Nov 02, 2012 4:48 am
hi, all
I have this in my rollup:

Code:

commands.push({ command: 'storeTextPresent', target: 'Sign In', value: 'x' });
commands.push({ command: 'echo', target: 'Rollup:CheckSignIn. 1.User sign in = ${x}' });
this works as expected and returns true or false, depending if we already signin or sighnout
But then I'm trying to implement logic with this it never true, for me looks like $x is still not seen by rollup.
Another question: does output from rollup goes into Log? I don't see it in my case so I finish with Alert isntead, uff looks like there is no way to run rollup step by step,
even if you run all steps in IDE you still can loose something in js conversion.
Code:

 if (storedVars['x'] ==  true) {
       alert ('This is message TRUEEEEEE');
       commands.push({ command: 'open', target: '/' });
   }

THe problem that I never get into this if event having echoed in prev steps, can anabody help me how to overcome this, is this bad syntax or something???
Will js see actual storedVars so he can make desision, it doesn't complain about this if at least!!
Tx
Dai
avatar
dainova
Active particpant
Active particpant
Posts : 19
Join date : 2012-02-23

if (storedVars['var1'] == true   in Rollups?  will it work Empty Re: if (storedVars['var1'] == true in Rollups? will it work

Sat Nov 03, 2012 3:45 am
Yes, I just confirmed that storeText, store, storeTextPresent doesn't work from rollups to be used in IDE, as well output from Rollup doean't go into log, which make the whole idea of rollup kind of very questionable.

Tx
Dai
Back to top
Permissions in this forum:
You cannot reply to topics in this forum