Пример #1
0
 def __init__(self,
              url,
              waitTime=None,
              waitFrequency=None,
              forbidden_pic=False,
              forbidden_js=False):
     driver.__init__(self,
                     url,
                     waitTime=waitTime,
                     waitFrequency=waitFrequency,
                     forbidden_pic=forbidden_pic,
                     forbidden_js=forbidden_js)
Пример #2
0
 def __init__(self,
              headless=False,
              waitTime=None,
              waitFrequency=None,
              forbidden_pic=False,
              forbidden_js=False):
     driver.__init__(self,
                     headless=headless,
                     waitTime=waitTime,
                     waitFrequency=waitFrequency,
                     forbidden_pic=forbidden_pic,
                     forbidden_js=forbidden_js)
     self.browser.get(self.xiangqin_bar)
     self._login_()
Пример #3
0
 def __init__(self,
              headless=False,
              waitTime=None,
              waitFrequency=None,
              forbidden_pic=False,
              forbidden_js=False):
     driver.__init__(self,
                     headless=headless,
                     waitTime=waitTime,
                     waitFrequency=waitFrequency,
                     forbidden_pic=forbidden_pic,
                     forbidden_js=forbidden_js)
     self.browser.get(self.url)
     #         f = open(file='cookies', mode='r', encoding='utf8')
     #         data = f.read()
     #         cookies = eval(data)
     #         for cookie in cookies:
     #             print(cookie)
     #             self.browser.add_cookie(cookie)
     self.__login__()
     input('msg:')
     cookies = self.browser.get_cookies()
     print(cookies)
Пример #4
0
 def __init__(self):
     driver.__init__(self)
     self.browser.get(self.url)
     self.browser.maximize_window()
     self.__login__()