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

i have tried these both keywords but no hope
TermsAndConditions_check_checkbox

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

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:

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

Hope that helps,

Dave.

Thanks Dave it works fine with ur solution

1 Like