public void completePersonalInformation() { var testData = new CreateTestData(); var myAccount = new MyAccountPage(driver); string password = testData.generatePassword(10, true); string firstName = testData.GenRandomFirstName(); enteredFirstName = firstName; string lastName = testData.GenRandomLastName(); enteredLastName = lastName; mrRadioBtn.Click(); firstNamefield.Click(); firstNamefield.SendKeys(firstName); lastNamefield.Click(); lastNamefield.SendKeys(lastName); passwordField.SendKeys(password); string autoCompletedFirstName = addressFirstNameField.GetAttribute("value"); string autoCompletedLastName = addressLastNameField.GetAttribute("value"); Assert.AreEqual(firstName, autoCompletedFirstName); Assert.AreEqual(lastName, autoCompletedLastName); }