<label for="CREDIT" class="_8J-bZE _3C6tOa _2i24Q8">
<input type="radio" class="_2haq-9" name="paymentOptions" readonly="" id="CREDIT" value="on">
<div class="_6ATDKp"></div>
<div class="_2o59RR">
</div>
</label>
<label for="NET_OPTIONS" class="_8J-bZE _3C6tOa _2i24Q8">
<input type="radio" class="_2haq-9" name="paymentOptions" readonly="" id="NET_OPTIONS" value="on">
<div class="_6ATDKp"></div>
<div class="_2o59RR"></div>
</label>
There are the two radio buttons with same class name and I want to click the second one ( NET OPTIONS). I am new to python and selenium both any help will be appriciated. I have tried Xpath and locating ID both but still NO sucess
driver.find_element_by_id("NET_OPTIONS").click()
driver.find_element_by_xpath("//*[@id='container']/div/div[1]/div/div/div[1]/div[4]/div/div/div/div[3]/div/label[3]").click()
after trying the above code , I am getting this error, However radio button is very much visible on the page but , webriver is nit able to locate it :( .selenium.common.exceptions.ElementNotVisibleException: Message: element not visible
find_element_by_id().iframeelement = driver.find_element_by_id("NET_OPTIONS") driver.execute_script("arguments[0].click();", element)