fixing using new account page version when we are already on old account page
This commit is contained in:
parent
f1c2b3ea34
commit
b9d3e87fda
1 changed files with 6 additions and 4 deletions
|
|
@ -81,16 +81,18 @@ class Paypal(Browser):
|
||||||
|
|
||||||
def get_accounts(self):
|
def get_accounts(self):
|
||||||
self.find_website_version()
|
self.find_website_version()
|
||||||
if self.website == "old" and not self.is_on_page(AccountPage):
|
if self.website == "old":
|
||||||
self.location('/en/cgi-bin/webscr?cmd=_account&nav=0.0')
|
if not self.is_on_page(AccountPage):
|
||||||
|
self.location('/en/cgi-bin/webscr?cmd=_account&nav=0.0')
|
||||||
elif not self.is_on_page(NewAccountPage):
|
elif not self.is_on_page(NewAccountPage):
|
||||||
self.location('/businessexp/money')
|
self.location('/businessexp/money')
|
||||||
|
|
||||||
return self.page.get_accounts()
|
return self.page.get_accounts()
|
||||||
|
|
||||||
def get_account(self, _id):
|
def get_account(self, _id):
|
||||||
if self.website == "old" and not not self.is_on_page(AccountPage):
|
if self.website == "old":
|
||||||
self.location('/en/cgi-bin/webscr?cmd=_account&nav=0.0')
|
if not self.is_on_page(AccountPage):
|
||||||
|
self.location('/en/cgi-bin/webscr?cmd=_account&nav=0.0')
|
||||||
elif not self.is_on_page(NewAccountPage):
|
elif not self.is_on_page(NewAccountPage):
|
||||||
self.location('/businessexp/money')
|
self.location('/businessexp/money')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue