# Can any one help me with checking a check box using browser library

**URL:** <https://forum.robotframework.org/t/can-any-one-help-me-with-checking-a-check-box-using-browser-library/5945>\
**Category:** Browser\
**Created:** [13 July 2023 08:18 UTC](https://forum.robotframework.org/t/can-any-one-help-me-with-checking-a-check-box-using-browser-library/5945 "2023-07-13T08:18:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![safwatmekawy](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@safwatmekawy](https://forum.robotframework.org/u/safwatmekawy)\
**Post date:** [13 July 2023 08:18 UTC](https://forum.robotframework.org/t/can-any-one-help-me-with-checking-a-check-box-using-browser-library/5945/1 "2023-07-13T08:18:57Z")

</div>

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/4/473a941b96e1ad7c99abb2da266947ab5bb6f05f.png)

i have tried these both keywords but no hope  
TermsAndConditions\_check\_checkbox

```
 Browser.Click //*[@id="termsAndConditions"]
 Check Checkbox //*[@id="termsAndConditions"]

```

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [14 July 2023 00:41 UTC](https://forum.robotframework.org/t/can-any-one-help-me-with-checking-a-check-box-using-browser-library/5945/2 "2023-07-14T00:41:10Z")

</div>

Hi safwat,

Perhaps the actuall input field is actually hidden and that would be why your having issues, are you getting an error like “Can’t click element because another element would receive the click”?

I’ll suggest trying to click the link in the label, like this:

```python
Browser.Click //*[@for="termsAndConditions"]/a
# or
Browser.Click //label[@for="termsAndConditions"]/a

```

Hope that helps,

Dave.

---

<div class="post-metadata">

**Author:** ![safwatmekawy](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@safwatmekawy](https://forum.robotframework.org/u/safwatmekawy)\
**Post date:** [16 July 2023 21:32 UTC](https://forum.robotframework.org/t/can-any-one-help-me-with-checking-a-check-box-using-browser-library/5945/3 "2023-07-16T21:32:09Z")

</div>

> [@damies13](#):
>
> `Browser.Click //label[@for="termsAndConditions"]/a`

Thanks Dave it works fine with ur solution
