We can select the radiobutton using click method as illustrated
in the below example in Python.
from selenium import webdriver
from selenium.webdriver.support.ui import Select
driver = webdriver.Firefox()
driver.maximize_window()
driver.get("http://register.rediff.com/register/register.php")
try:
driver.find_element_by_xpath("//*[@id='wrapper']/table[2]/tbody/tr[21]/td[3]/input[2]").click()
driver.close()
except Exception as e:
print ("Exception occured", format(e));
finally:
driver.quit()
print ("finally")
No comments:
Post a Comment