Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8393361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:45:47+00:00 2026-06-09T19:45:47+00:00

How do I write a Selenium IDE command to verify that the number is

  • 0

How do I write a Selenium IDE command to verify that the number is present if it increases as I invite more people by email??

For example, the total number of people: 30
Example 1: If I invite 1 person, how do I verify that the total number of people is 31?
Example 2: If I invite 5 people, how do I verify that the total number of people is 35?

Here is the code:

    <div style="color:#777; font-size:1.3em; float:right; margin-top:5px;">
    Total number of people:
    <span style="color:red;">30</span>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:45:48+00:00Added an answer on June 9, 2026 at 7:45 pm

    I believe you would have to:

    1. Store a value for how many invites you are going to do
    2. Store a value for the expected number of people (ie current plus invites)
    3. Go do the invites
    4. Store a value for the new total number of people
    5. Compare the new number to the expected number

    The following does the capturing and comparing of the numbers. You just have to add the part for doing the actual invites.

    <tr>
        <td>store</td>
        <td>5</td>
        <td>people_invited</td>
    </tr>
    <tr>
        <td>storeText</td>
        <td>//div[contains(text(),'Total number of people')]</td>
        <td>original_count_text</td>
    </tr>
    <tr>
        <td>storeEval</td>
        <td>parseInt(storedVars['original_count_text'].match(/\d+/))+parseInt(storedVars['people_invited'])</td>
        <td>expected_count</td>
    </tr>
    <tr>
        <td>echo</td>
        <td>Go invite 5 people</td>
        <td></td>
    </tr>   
    <tr>
        <td>storeText</td>
        <td>//div[contains(text(),'Total number of people')]</td>
        <td>new_count_text</td>
    </tr>
    <tr>
        <td>storeEval</td>
        <td>parseInt(storedVars['new_count_text'].match(/\d+/))</td>
        <td>new_count</td>
    </tr>
    <tr>
        <td>verifyExpression</td>
        <td>${expected_count}</td>
        <td>${new_count}</td>
    </tr>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can we verify whether a field is write-protected (that is, readonly) in Selenium
Right now I am trying to use selenium ide to write code that makes
I'm recording Selenium test with Selenium IDE. If I write a test for Selenium
I'm using Selenium RC to write test cases for a website that's at least
I'm using selenium api and want to write a condition that will assert if
I'm trying to write a Selenium test for a web page that uses an
I'm trying to write Selenium tests for HTML that's structured like this: <table> <tr
write a script that takes two optional boolean arguments,--verbose‚ and ‚--live, and two required
I'm using Eclipse EPIC IDE to write some Perl CGI scripts which call some
How do I write the function for Selenium to wait for a table with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.