radio button is not clicked/selected

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

radio button is not clicked/selected

swtester
Hi,
 
 I am trying to select a radio button... i tried with the following line in the below given page

wd.findElement(By.xpath("//input[@name='tripType' and @value='oneway']")).click();

page :  http://newtours.demoaut.com/mercuryreservation.php

It is not clicking the radio button
Reply | Threaded
Open this post in threaded view
|

Re: radio button is not clicked/selected

bswjitsamal
Hi,

Please apply a implicit wait command before selecting the radio button.
please specify the error which you are getting.