mardi 9 janvier 2018

Selenium Python PageObject

I would like to know how to pass self.driver of conftest (pytest) in another Class ?

Class A():
  def setUp():
    self.driver = webdriver.Remote("xxxxx")
  def teardown():
    self.driver.quit()

Class B():
  # How use self.driver ?????

Aucun commentaire:

Enregistrer un commentaire