I am trying to write a automation test using selenium and python webdriver
class UserAccountsTest(unittest.TestCase):
def setup(self):
self.driver=webdriver.Firefox()
def testFirstUser(self):
driver = self.driver
driver.implicitly_wait(15)
driver.get('website.com')
driver.implicitly_wait(15)
My error: object has no attribute 'driver' Im not sure why I can't assign driver to self.driver. Am I passing in self correctly?