I want to click on the checkbox. Tried different methods. But not working. Any solution?
@FindBy(xpath="//label[@for='Tnc']") Still its not getting the exact element of check box. Instead it is clicking on the Terms and Coniditions hyperlink and opening the pop up page. I wanted to click on the Chcekbox.
Use following
xpathto identify the element, which is checkbox element.