Setting a plain checkbox with robobrowser
I am struggling to check a simple checkbox with robobrowser to discard all messages in mailman. form['discardalldefersp'].options returns ['0'] , neither form['discardalldefersp'].value= True nor form['discardalldefersp'].value = '1' delivers a result. I only get 'ValueError: Option 1 not found in field ' How can I set the checkbox? My code for the whole thing is as following: import robobrowser pw = '<password>' browser = RoboBrowser(history=True) browser.open('<mailmanlist>') form = browser.get_form(action='/mailman/admindb/<listname>') form['adminpw'].value = pw browser.submit_form(form)