I have the following code in python
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Sele
Initialize the firefox driver in __init__:
__init__
class HomePageTest(unittest.TestCase): def __init__(self): self.driver = webdriver.Firefox() self.driver.implicitly_wait(30) self.base_url = "https://somewebsite.com" self.verificationErrors = [] ... def tearDown(self): self.driver.quit()