getting error :: 'TestLogin' object has no attribute 'driver'
sqa.stackexchange.com › questions › 44845Jun 08, 2020 · Show activity on this post. Below is code of my framework for testing which I am building, but I am getting the error 'TestLogin' object has no attribute 'driver'. from selenium.webdriver.common.by import By class LoginPage: def __init__ (self, driver): self.driver = driver mobile = (By.CSS_SELECTOR, "input.ng-untouched.ng-pristine.ng-invalid") def loginclick (self): return self.driver.find_element (*LoginPage.mobile)