python 2.7 - How could i deselect checkbox? -
for pincode tried this:
checkbox = webdriver.find_elements_by_xpath('//*[@name="add_in_fld"].onclick()') if checkbox.isselected(): checkbox.click()
from selenium import webdriver driver = webdriver.firefox() driver.get("http://www.findlatitudeandlongitude.com/batch-geocode/#.vbshl7oqphz") cb = driver.find_element_by_css_selector(".cb_short input") assert cb.is_selected() cb.click() assert not cb.is_selected()
Comments
Post a Comment