I am working on a project, where I have to catch the error message on radio button. When you submit the page or form, without selecting the radio buttons, it shows on top of radio button that 'please select one of the option' on radio buttons. The coding is
<Input type="radio" id="Never" value="100" name="physical_function2" required="">
I am able display "false" when radio button is not clicked with
switchTo().getText().But as its not an alert,it doesn't work.I can't inspect the message.