MechanicalSoup not selecting a non-form input

200 Views Asked by At

I want to select a input. The only problem is: the MechanicalSoup is giving me a error just by trying to select a input outside of a form.

Login site(Outlook)

Code:

import mechanicalsoup
br = mechanicalsoup.StatefulBrowser()
br.open('https://outlook.live.com/owa/?nlp=1')
print(br.get_url())
br.['loginfmt'] = '****************************'
br.submit_selected()
#Is here that my program gives a error, and there i stopped. (I edited the email.)
0

There are 0 best solutions below