The error says that element could not be scrolled to the view. Thank you for your help :)
below is the code:
IList<IWebElement> rdBtn_Country = driver.FindElements(By.Name("ContactDetails$StreetAddress$Country"));
Boolean cValue = false;
cValue = rdBtn_Country.ElementAt(0).Selected;
if (cValue == true)
{
rdBtn_Country.ElementAt(1).Click();
}
else
{
rdBtn_Country.ElementAt(0).Click();
}
Aucun commentaire:
Enregistrer un commentaire