public void ThenIFillRegisterForm() { var ListOfPeople = ExcelHelpers.PopulateInCollection(Path.Combine(AppContext.BaseDirectory.Substring(0, AppContext.BaseDirectory.IndexOf("bin")), @"Data\register.xlsx"), "Sheet1"); foreach (var item in ListOfPeople) { nikePage.setEmail(item.Email) .setPassword(item.Password) .setFirstName(item.FirstName) .setLastName(item.LastName) .setDateOfBirth(item.DateOfBirth) .setCountry(item.Email) .setGender(item.Sex) .submitForm(); //WebDriverExtensions.SummaryDisplayed(DriverContext.Driver, "MyAccountLink");\ //WebDriverExtensions.FindElement(DriverContext.Driver, By.Id("MyAccountLink"), 20); WebDriverExtensions.Wait(6); nikePage.LogOut(); nikePage.Login(); } Assert.True(true); }