Python Mechanize select value from <select> box -
i'm trying use mechanize fill , submit form, i'm not able fill select boxes, throws errors. how set value select boxes before submitting it?
select form, , set value want using item assignemnt browser[...] = [...]
.
b = mechanize.browser() b.open(url) b.select_form(nr=0) b['select_name_attribute'] = ['option_value'] # <----- b.submit()
Comments
Post a Comment