Fix #6860 (Harvard Business Reviw)

This commit is contained in:
Kovid Goyal 2010-09-18 10:35:41 -06:00
parent 5982e40a80
commit b85bc6517a

View File

@ -33,9 +33,9 @@ class HBR(BasicNewsRecipe):
def get_browser(self): def get_browser(self):
br = BasicNewsRecipe.get_browser(self) br = BasicNewsRecipe.get_browser(self)
br.open(self.LOGIN_URL) br.open(self.LOGIN_URL)
br.select_form(name='signInForm') br.select_form(name='signin-form')
br['signInForm:username'] = self.username br['signin-form:username'] = self.username
br['signInForm:password'] = self.password br['signin-form:password'] = self.password
raw = br.submit().read() raw = br.submit().read()
if 'My Account' not in raw: if 'My Account' not in raw:
raise Exception('Failed to login, are you sure your username and password are correct?') raise Exception('Failed to login, are you sure your username and password are correct?')