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


Does rollup can evaluate var?

View previous topic View next topic Go down

Does rollup can evaluate var?

Post by dainova on Thu Nov 08, 2012 10:53 am

Hi, all
I'm trying to code this and evaluate but never get TRUE, even I see in echo that it's . I did play will possible combination around ${}"''etc, but nothing helped.
I tested and see that rollups see and can evaluate var from outside using the same syntax (if (storedVars['var1'] == true) { then.... true....). But somehow if you assign it inside rollup I still have problem with IF, even in ELSE section I see state1 displayed again as "IL" !!!! Shocked
Can anybody help me with this, what is wrong with mine code?? any escapes I'm missing???


  commands.push({ command: 'storeSelectedLabel', target: 'id=Select_ddlState', value: 'state1' });
  commands.push({ command: 'echo', target: '${state1}' });              // displayed <IL>
  if (storedVars['state1'] == 'IL') { commands.push({ command: 'echo', target: 'True!!!!!!!!!!!!!!!!!!!!!!' });
                    commands.push({ command: 'echo', target: '${state1}' });                          }
  else {        commands.push({ command: 'echo', target: '2. False======' });
             commands.push({ command: 'echo', target: '${state1}' });      // displayed : IL  #2 !!!!!!!

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