Display results as :

Rechercher Advanced Search

Latest topics
» Run automated selenium test scripts from JIRA ondemand
Fri Dec 08, 2017 12:40 pm by azharuddin

» New! Appium Desktop
Sat Nov 25, 2017 3:51 pm by azharuddin

» Selenium WebDriver Integration
Tue Nov 21, 2017 1:06 pm by azharuddin

» 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


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