driver.get('http://tiedao.vvtuu.com/vatuu/StudentScoreInfoAction?setAction=studentMarkFromTerm ')
driver.find_element_by_id("check1").click()
driver.find_element_by_id("check2").click()
checkboxs = driver.find_elements_by_xpath(".//*[@type='checkbox']")
for i in checkboxs:
i.click()
driver.find_element_by_name("btn1").click()
data=driver.find_element_by_name("creditAvg").get_attribute('value')
print data
前面选择了复选框,后面进行提交操作时,又一次刷新,重新全选,求助,如何保存复选框状态并进行button计算。