Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

» Selenium Webdriver
Sat Feb 04, 2017 6:47 pm by soumyamishrav@gmail.com

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by dainova on 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

dainova
Active particpant
Active particpant

Posts : 19
Join date : 2012-02-23

Back to top Go down

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

Post by dainova on 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

dainova
Active particpant
Active particpant

Posts : 19
Join date : 2012-02-23

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum