Esempio n. 1
0
class BankingSite(Site):
    def __init__(self, url):
        self.url = url

    def __enter__(self):
        self.b = Browser()
        self.b.get(self.url)
        self.t = self.b.tabs[0]
        return self

    def __exit__(self, type, value, traceback):
        self.b.close()

    def login(self, login_info):
        raise NotImplementedError()
Esempio n. 2
0
class BankingSite(Site):
  def __init__(self, url):
    self.url = url

  def __enter__(self):
    self.b = Browser()
    self.b.get(self.url)
    self.t = self.b.tabs[0]
    return self

  def __exit__(self, type, value, traceback):
    self.b.close()

  def login(self, login_info):
    raise NotImplementedError()
Esempio n. 3
0
 def __enter__(self):
     self.b = Browser()
     self.b.get(self.url)
     self.t = self.b.tabs[0]
     return self
Esempio n. 4
0
 def __enter__(self):
   self.b = Browser()
   self.b.get(self.url)
   self.t = self.b.tabs[0]
   return self