Pages

Search This Blog

Thursday, May 20, 2010

How to compare two variables in selenium

We can compare two variable and store the result as Boolean (true or false ) in a Boolean variable. Using javascript we can compare

<tr>
<td>store</td>
<td>5</td>
<td>a</td>
</tr>
<tr>
<td>store</td>
<td>2</td>
<td>b</td>
</tr>
<tr>
<td>store</td>
<td>javascript{var bool=(storedVars['a']==storedVars['b']);bool;}</td>
<td>bool</td>
</tr>

10 comments:

  1. How to store dynamic values n compare them

    ReplyDelete
  2. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium

    ReplyDelete
  3. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium.
    Selenium

    ReplyDelete
  4. Well explained. Got to learn new things from your Blog on Appium.
    Appium training in chennai

    ReplyDelete
  5. It was very nice blog to learn about Selenium.Thanks for sharing new things.selenium training in chennai

    ReplyDelete
  6. Thank you for this post. Thats all I are able to say. You most absolutely have built this blog website into something speciel. You clearly know what you are working on, youve insured so many corners.thanks
    Devops Training courses
    python Training in chennai
    Devops Training in Bangalore

    ReplyDelete
  7. I appreciate that you produced this wonderful article to help us get more knowledge about this topic.
    I know, it is not an easy task to write such a big article in one day, I've tried that and I've failed. But, here you are, trying the big task and finishing it off and getting good comments and ratings. That is one hell of a job done!

    Selenium training in bangalore
    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training
    Selenium interview questions and answers

    ReplyDelete
  8. It would have been the happiest moment for you,I mean if we have been waiting for something to happen and when it happens we forgot all hardwork and wait for getting that happened.
    python Training institute in Chennai
    python Training institute in Bangalore
    python Training in Pune

    ReplyDelete