def testEnterPassword(self): import envVar envVar.setVar() password = os.getenv('PASSWORD') password_input = "/html/body/div[2]/form/div[2]/input" password_field = self.driver.find_element_by_xpath(password_input) password_field.click() password_field.send_keys(password) time.sleep(1)
def testEnterUsername(self): import envVar envVar.setVar() username_input = "/html/body/div[2]/form/div[1]/input" username = os.getenv('EMAIL') username_field = self.driver.find_element_by_xpath(username_input) username_field.click() username_field.send_keys(username) time.sleep(1) login_path = "/html/body/div[2]/form/div[3]/button" login_field = self.driver.find_element_by_xpath(login_path) login_field.click() time.sleep(3)