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>

6 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