-1

enter image description here

Need support on issue selecting radio button, tried with javascript but not working.

WebElement Select4 = driver.findElement(By.name("IsGoldMember"));
Select4.click();
Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
Rajesh Varma
  • 151
  • 2
  • 10

1 Answers1

0

Try driver.findElement(By.xpath("//input[@id='IsGoldMemberTrue']"));. It maybe the case that the name IsGoldMember is not unique on the web page.

Jayesh Doolani
  • 1,233
  • 10
  • 13
  • Hey it worked with below code, WebElement webElement= driver.findElement(By.id("IsGoldMemberFalse")); Actions actions = new Actions(driver); actions.click(webElement).build().perform(); – Rajesh Varma May 05 '17 at 17:56
  • The Html design on the application is not standard format which is creating issues I have above – Rajesh Varma May 05 '17 at 17:58