Below is my HTML snippet of my Application. My Scenario is to Click on the Radio button. The xpath which I am using is //input[@id='authorizedContact1']
but still I am unable to Click on the Radio button.
The HTML is:
<div class="radio">
<input id="authorizedContact1" name="authorizedContactValue" class="authorizedContact" type="radio">
<label for="authorizedContact1">
::before ==$0
"YES"
::after
</label>
</div>
Here is is my code which I am using in Selenium
WebDriverWait wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(100));
IWebElement element = wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//input[@id='authorizedContact1']")));
element.Click();
I am using the XPATH as //input[@id='authorizedContact1']
But still unable to Click on the Radio button can anyone Help me in this