Display results as :

Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» 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


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