# Unable to record radio button

**URL:** <https://forum.katalon.com/t/unable-to-record-radio-button/45353>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 8, 2020, 7:34am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353 "2020-07-08T07:34:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![myoethandarkyaw2018](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@myoethandarkyaw2018](https://forum.katalon.com/u/myoethandarkyaw2018)\
**Post date:** [July 8, 2020, 7:34am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/1 "2020-07-08T07:34:11Z")

</div>

Hello everyone, I would like to ask how to solve this exception. I would like to record radio button in my testcase. When I run my testcase, I get this error. Please kindly check and reply to me. Thank you.

# =============== ROOT CAUSE ===================== Caused by: org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element is not clickable at point (454, 153). Other element would receive the click:

07-08-2020 01:24:37 PM Test Cases/NewManaulTimeClock(AllEmployees)

Elapsed time: 24.891s

Test Cases/NewManaulTimeClock(AllEmployees) FAILED.  
Reason:  
com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/NewManaulTimeClock(AllEmployees)/Page\_HRMS/div\_My Direct Reports\_mat-radio-outer-circle’  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)  
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:76)  
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:43)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:72)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$3.call(Unknown Source)  
at NewManaulTimeClock(AllEmployees).run(NewManaulTimeClock(AllEmployees):46)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1594191271295.run(TempTestCase1594191271295.groovy:25)  
Caused by: org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element

 is not clickable at point (454, 153). Other element would receive the click: 

  
(Session info: chrome=83.0.4103.116)  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-155UPUB’, ip: ‘192.168.56.1’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
Driver info: com.kms.katalon.selenium.driver.CChromeDriver  
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 83.0.4103.116, chrome: {chromedriverVersion: 83.0.4103.39 (ccbf011cb2d2b…, userDataDir: C:\Users\MYOE\AppData\Local…}, goog:chromeOptions: {debuggerAddress: localhost:65168}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true}  
Session ID: e698d1d958a79818336c4442f4315bb9  
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)  
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)  
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)  
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)  
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:19)  
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)  
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)  
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)  
at com.sun.proxy.$Proxy9.click(Unknown Source)  
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.click(EventFiringWebDriver.java:417)  
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$\_click\_closure1.doCall(ClickKeyword.groovy:69)  
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$\_click\_closure1.call(ClickKeyword.groovy)  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)  
… 17 more  
 ![exception](https://europe1.discourse-cdn.com/katalon/original/2X/d/dee76ea6fdde22da24cdc5f35cab79c0085bffa0.png) ![object_x_path](https://europe1.discourse-cdn.com/katalon/original/2X/a/a6c1aba6ef27d83e3e2ec612122238a55a6715d9.png) ![radio_button](https://europe1.discourse-cdn.com/katalon/original/2X/5/58a5641a34ad3e8924e59a26c2cc2a70cc4d9f3b.png) ![testcase](https://europe1.discourse-cdn.com/katalon/original/2X/d/d2b936764b6f7ef9cdc2884c5e3cca00a11fd08e.png)

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [July 8, 2020, 8:58am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/2 "2020-07-08T08:58:00Z")

</div>

Assigned @ThanhTo on July 8, 2020, 8:58am UTC



---

<div class="post-metadata">

**Author:** ![shafiqsarwar6](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@shafiqsarwar6](https://forum.katalon.com/u/shafiqsarwar6)\
**Post date:** [July 8, 2020, 12:43pm UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/3 "2020-07-08T12:43:16Z")

</div>

You need to use check not the click to select the radio button.  
Like this:  
WebUI.uncheck(findTestObject(‘Page\_Top\_Bar/input\_Configure Right Inbox\_smartAttachmentsCheck’))

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [July 8, 2020, 6:26pm UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/4 "2020-07-08T18:26:14Z")

</div>

@myoethandarkyaw2018 Can we see the HTML of the two radio buttons as well as the definition you have of the div\_All Employees element? I assume that is the element you are investigating? It looks like you have it as a **div** but I figure it should be an **input**.

---

<div class="post-metadata">

**Author:** ![myoethandarkyaw2018](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@myoethandarkyaw2018](https://forum.katalon.com/u/myoethandarkyaw2018)\
**Post date:** [July 9, 2020, 3:01am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/5 "2020-07-09T03:01:42Z")

</div>

Thank you for your reply. I will test it again.

---

<div class="post-metadata">

**Author:** ![myoethandarkyaw2018](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@myoethandarkyaw2018](https://forum.katalon.com/u/myoethandarkyaw2018)\
**Post date:** [July 9, 2020, 3:06am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/6 "2020-07-09T03:06:18Z")

</div>

Thank you for your suggestions. I will check it in HTML and test it again.

---

<div class="post-metadata">

**Author:** ![thaiFromKatalon](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thaifromkatalon/32/12268_2.png) [@thaiFromKatalon](https://forum.katalon.com/u/thaiFromKatalon)\
**Post date:** [July 9, 2020, 3:37am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/7 "2020-07-09T03:37:52Z")

</div>

You can try to capture the xpath/CSS by yourself. Most of the time the Radio buttons will have nearly identical attribute. One way to fix that is to use the neighbor elements of that radio button.

e.g. //input[@class=‘radio’]/following::span[text()=‘Radio 1’]

---

<div class="post-metadata">

**Author:** ![myoethandarkyaw2018](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@myoethandarkyaw2018](https://forum.katalon.com/u/myoethandarkyaw2018)\
**Post date:** [July 10, 2020, 4:36am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/8 "2020-07-10T04:36:15Z")

</div>

Hello @thaiFromKatalon @grylion54, I would like to ask about that when I capture the object for radio button using Object Spy, it display “div\_In\_mat-radio-inner-circle” instead of “//input[@class=‘radio’]/following::span[text()=‘Radio 1’]” at Object Name in Spy view. Please kindly check and reply to me. What should I do? Thank you.

 ![radio_object](https://europe1.discourse-cdn.com/katalon/original/2X/7/7659c1a1bee9fe9d66ed94c96221106038a27cbb.png)

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [July 10, 2020, 4:55am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/9 "2020-07-10T04:55:21Z")

</div>

@myoethandarkyaw2018 It depends where you “test” for the element that you capture with the Object Spy. As an example in the picture above you have **Out** highlighted, and you have a **div** element. However, I “test” only the actual circle of the radio button–it’s in red in the picture above. That is the actual **input** element. Try to “test” with the Object Spy just the radio button in red and check if it is an **input** element. 🙂

---

<div class="post-metadata">

**Author:** ![myoethandarkyaw2018](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@myoethandarkyaw2018](https://forum.katalon.com/u/myoethandarkyaw2018)\
**Post date:** [July 10, 2020, 5:45am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/10 "2020-07-10T05:45:46Z")

</div>

Hello @grylion54  
Good day, I have been tested again for the radio button in red and check if it is an **input** element, it display “ **div\_In\_mat-radio-inner-circle** ”. What should I do? If you have time, please kindly check and reply to me. Thank you so much.

 ![out_radio_object](https://europe1.discourse-cdn.com/katalon/original/2X/0/03d62fbcfdf23b82cc36bd189071fc12146074e5.png)

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [July 10, 2020, 6:01am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/11 "2020-07-10T06:01:16Z")

</div>

You have to review the HTML code at this time. If you are using Chrome, hit F12. This will bring up the code window. Then right click on the **Out** element and select **Inspect**. Now the code window should display the elements around the **Out** element.

---

<div class="post-metadata">

**Author:** ![myoethandarkyaw2018](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@myoethandarkyaw2018](https://forum.katalon.com/u/myoethandarkyaw2018)\
**Post date:** [July 10, 2020, 7:43am UTC](https://forum.katalon.com/t/unable-to-record-radio-button/45353/12 "2020-07-10T07:43:21Z")

</div>

Thank you for your reply. I will test it again.
