public void ThenMyAccountShouldBe(string value) { _driver.Url = test_url + "/index.php?controller=identity"; PDPage pdPage = new PDPage(_driver); var actual = pdPage.GetFirstName(); Assert.That(value, Is.EqualTo(actual), "Firstname does not match:" + $"Expected: {value} but got {actual}"); }
public void GivenMyAccountIs(string value) { _driver.Url = test_url + "/index.php?controller=identity"; PDPage pdPage = new PDPage(_driver); var tester = this.config.Get("Customer"); pdPage.UpdateFirstNameOnly(value, tester[1]); _driver.Url = test_url + "/index.php?controller=identity"; var actual = pdPage.GetFirstName(); if (actual != value) { throw new Exception("Precondtion Error: Unable to set firstname default"); } }