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

  • SEARCH
  • Home
  • 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 8362557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:58:03+00:00 2026-06-09T11:58:03+00:00

How to determine if a checkbox is check or not through xpath Currently I

  • 0

How to determine if a checkbox is check or not through xpath

Currently I am trying :

//input[@type='checkbox' and @checked='true')]

I have multiple checkboxes with same ids so I have to select the next checkbox which is not selected/checked.

Specifically I need this for Selenium IDE

Edit
what I actually need is sth like :

|storeXpathCount | //input[@name='xyz' and @checked='checked'] | is_checked | 

if checkbox ‘xyz’ is checked , is_checked value should be 1 else 0

thanks

  • 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-09T11:58:04+00:00Added an answer on June 9, 2026 at 11:58 am

    enter image description here

    Here stnewrecord is class of check-box.
    Script will store number of check-box, and according to that loop will follow.
    It will check whether check-box is checked or not if not it will check else move to next step.

    xpath=(//input[@class='stnewrecord'])[${i}]  
    

    This is xpath of check-box. ‘i’ is position, it will increase on each iteration.

    Let me know whether its working for you or not..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is my html markup: <input type=checkbox checked=false> I have set the checked to
I use this code to determine checkbox width and height: var chk = $('input[type=checkbox]:first');
I have a list of checkboxes and with every checkbox, there is an input
I have a page that contains multiple checkbox input elements. Toggling these alter the
I have a JavaScript function that goes through a list of checked checkboxes and
I'm trying to use an IF-clause to determine whether my checkbox, named Check Box
How do I determine if the checkbox is checked or not checked? Very perplexed
I want to iterate over checkboxes div and determine if checkbox1,checkbox2,checkbox3 are checked //
Default.aspx; <form id=form1 runat=server action=Default2.aspx method=post> <input type=checkbox name=change id=change/> </form> Default2.aspx.cs string ismultiple
<input type=checkbox onclick=onClickHandler() onchange=onChangeHandler() /> From within onClickHandler and/or onChangeHandler , how can I

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.