public void RegisterUserWithValidData() { var path = Path.GetFullPath(Directory.GetCurrentDirectory() + "/../../../Models/ValidUserData.json"); var user = User.FromJson(File.ReadAllText(path)); IWebDriver driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); driver.Navigate().GoToUrl("http://automationpractice.com/index.php"); driver.Manage().Window.Maximize(); HomePage homePage = new HomePage(driver); LoginPage loginPage = new LoginPage(driver); RegistrationPage registration = new RegistrationPage(driver); homePage.signInButton.Click(); loginPage.EmailField.SendKeys($"abv{Randomgenerator()}@abv.bg"); loginPage.CreateAnAcountButton.Click(); registration.FillForm(user); }