Syntax:-
WebElement radioButtonFemale = driver.findElement(By.xpath(“//input[@value=’female’]”));
// radio option male
WebElement radioButtonMale = driver.findElement(By.xpath(“//input[@value=’male’]”));
// radio option Other
WebElement radioButtonOther = driver.findElement(By.xpath(“//input[@value=’Other’]”));
// submit button
WebElement submitButton = driver.findElement(By.xpath(“//input[@value=’Send’]”));
// selecting Female option – or select from the 3 web elements
radioButtonFemale.click();
radioButtonMale.click();
radioButtonOther.click();