# How to click on a radio button from a webtable when the id is showing some random number

**URL:** <https://forum.katalon.com/t/how-to-click-on-a-radio-button-from-a-webtable-when-the-id-is-showing-some-random-number/18891>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [February 5, 2019, 3:05pm UTC](https://forum.katalon.com/t/how-to-click-on-a-radio-button-from-a-webtable-when-the-id-is-showing-some-random-number/18891 "2019-02-05T15:05:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakshmi.manohari](https://avatars.discourse-cdn.com/v4/letter/l/8c91f0/32.png) [@lakshmi.manohari](https://forum.katalon.com/u/lakshmi.manohari)\
**Post date:** [February 5, 2019, 3:05pm UTC](https://forum.katalon.com/t/how-to-click-on-a-radio-button-from-a-webtable-when-the-id-is-showing-some-random-number/18891/1 "2019-02-05T15:05:47Z")

</div>

The requirement is, I have to select 2 radio buttons with the value as “No”.  
When I identify the radio buttons, it’s detecting the below values as :  
input id = input value as false, class name as ‘x-from- field x-from-radio’ and type as button.

If with the above values, in Object repository values are passed, for the first object , the radio button is selected as ‘NO’ ---- Which I want

 ![Raddiobutton](https://europe1.discourse-cdn.com/katalon/original/2X/d/d6c39cdeedd9936d96e5761dc96222c1d3536398.png)

But, for the second radio button, too the same values are populating,  
I cannot use the same ObjectRepository to click the second object as it will click the first one.

Also, I feel I cannot consider XPath

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [February 5, 2019, 3:13pm UTC](https://forum.katalon.com/t/how-to-click-on-a-radio-button-from-a-webtable-when-the-id-is-showing-some-random-number/18891/2 "2019-02-05T15:13:21Z")

</div>

> [@lakshmi.manohari](#):
>
> The requirement is, I have to select 2 radio buttons with the value as “No”.  
> When I identify the radio buttons, it’s detecting the below values as :  
> input id = input value as false, class name as ‘x-from- field x-from-radio’ and type as button.

Firstly, If they are ACTUAL radio controls, then their `type` should be `radio`: `type="radio"`. If their type is (as you say) `button` then they are not radios (even though the may _look like radios_).

As to your issue… try assigning your own CSS or XPath expressions to the objects in the OR. You can get the xpath expression from the browser devtools inspector when you right-click on the radio element.

---

<div class="post-metadata">

**Author:** ![B\_L](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/b_l/32/976_2.png) [@B\_L](https://forum.katalon.com/u/B_L)\
**Post date:** [February 5, 2019, 3:20pm UTC](https://forum.katalon.com/t/how-to-click-on-a-radio-button-from-a-webtable-when-the-id-is-showing-some-random-number/18891/3 "2019-02-05T15:20:51Z")

</div>

If you show us your page might be able to use stuff around the inputs to help come up with an xpath.
