def testVerifyFirstNameRequired(self): """ Verify that first name is required field and expected message displayed after form submitted with empty. """ welcome = welcomePage(self.driver) welcome.login("", self.valid_lname, self.valid_email, self.valid_phone, self.genderM,self.california) assert self.errorExpectedNoFirstNAME in self.driver.find_element_by_id(self.errorline).text self.driver.close()
def testVerifyUserCanSignUp(self): """ Verify that user can signup with all valid data """ wait = WebDriverWait(self.driver, 10) # Wait 10 second for element present wait.until(lambda driver: driver.find_elements_by_id("id_fname")) welcome = welcomePage(self.driver) assert self.driver.title in self.expectedTitle self.driver.close()