Пример #1
0
 def SubTask(self, driver, TaskInfo):
     Task = AmazonFunction(driver, TaskInfo)
     Task.VerifyEnhance = True
     if Task.login():
         try:
             driver.get("https://www.amazon.com/")
             time.sleep(5)
         except:
             pass
         if self.WalkaroundEn:
             Task.Walkaround()
         TaskInfo['cookies'] = json.dumps(driver.get_cookies())
     else:
         TaskInfo['cookies'] = ''
     pass
Пример #2
0
 def SubTask(self, driver, TaskInfo):
     TaskInfo['username'] = ''
     TaskInfo['password'] = ''
     TaskInfo['cookies'] = ''
     Task = AmazonFunction(driver, TaskInfo)
     EmailDomain = '@foxairmail.com'
     if not Task.CreatAcount(EmailDomain):
         return False
     Task.driver.get("https://www.amazon.com/")
     try:
         Task.driver.find_element_by_id('nav-logo').click()
     except:
         pass
     try:
         Task.ViewAllPage()
         Task.Walkaround()
     except:
         pass
     Task.FunctionInfo['cookies'] = json.dumps(driver.get_cookies())
     #Task.FunctionInfo['cookies'] = ''
     return True