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() 

sample link

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

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -