Adding id of submitBtn for br.submit() to avoid redirected to login page after passing correct email and password.

This commit is contained in:
Daisuky 2017-06-20 22:56:25 +09:00
parent 469ec4d2fe
commit f1dfdc5c6a

View File

@ -66,7 +66,7 @@ class NikkeiNet_paper_subscription(BasicNewsRecipe):
br.select_form(name='LA7010Form01')
br['LA7010Form01:LA7010Email'] = self.username
br['LA7010Form01:LA7010Password'] = self.password
br.submit()
br.submit(id='LA7010Form01:submitBtn')
# response = br.response()
print "-------------------------JS redirect---------------------------------------"
br.select_form(nr=0)