Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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