Setting a plain checkbox with robobrowser

左心房为你撑大大i 提交于 2019-12-04 18:42:41

I had a similar error message with a radio button. Try to add the option of '1' or True to the Robobrowser field discardalldefersp and see if it solves the problem:

form['discardalldefersp'].options = ['1']
form['discardalldefersp'].value = '1'

Or with the True option:

form['discardalldefersp'].options = [True]
form['discardalldefersp'].value = True

That solved me of getting the error message but the form didn't work well, but I think it was the web site that wasn't working good.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!