Commit b7a36aff authored by Théo Dorée's avatar Théo Dorée Committed by Romain Bignon

[amazon] Corrected to_login function to use the right variables

parent a6d5ed69
Pipeline #854 failed with stages
in 62 minutes and 32 seconds
...@@ -37,8 +37,7 @@ class AmazonPage(HTMLPage): ...@@ -37,8 +37,7 @@ class AmazonPage(HTMLPage):
class HomePage(AmazonPage): class HomePage(AmazonPage):
def to_login(self): def to_login(self):
if not self.home.is_here(): self.browser.home.stay_or_go()
self.home.go()
self.browser.location(self.doc.xpath('(//a[contains(., "Identifiez-vous")]//@href)[1]')[0]) self.browser.location(self.doc.xpath('(//a[contains(., "Identifiez-vous")]//@href)[1]')[0])
return self.browser.page return self.browser.page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment