checking website version after login

This commit is contained in:
Vincent Paredes 2014-11-05 16:09:14 +01:00 committed by Romain Bignon
commit 9a657f8d75

View file

@ -79,8 +79,9 @@ class Paypal(Browser):
if self.is_on_page(LoginPage):
raise BrowserIncorrectPassword()
def get_accounts(self):
self.find_website_version()
def get_accounts(self):
if self.website == "old":
if not self.is_on_page(AccountPage):
self.location('/en/cgi-bin/webscr?cmd=_account&nav=0.0')