diff --git a/nipts-pts-automation-tests/Pages/AP-GB/PetNamePage/PetsNamePage.cs b/nipts-pts-automation-tests/Pages/AP-GB/PetNamePage/PetsNamePage.cs index 66c0ae9..57d1923 100644 --- a/nipts-pts-automation-tests/Pages/AP-GB/PetNamePage/PetsNamePage.cs +++ b/nipts-pts-automation-tests/Pages/AP-GB/PetNamePage/PetsNamePage.cs @@ -15,7 +15,7 @@ public PetsNamePage(IObjectContainer container) #region Page objects private IWebDriver _driver => _objectContainer.Resolve(); - public IWebElement PageHeading => _driver.WaitForElement(By.XPath("//h1[@for='PetName']"), true); + public IWebElement PageHeading => _driver.WaitForElement(By.XPath("//label[@for='PetName']"), true); private IWebElement txtPetsName => _driver.WaitForElement(By.Id("PetName")); private IReadOnlyCollection lblErrorMessages => _driver.WaitForElements(By.XPath("//div[@class='govuk-error-summary__body']//a")); private IWebElement btnContinue => _driver.WaitForElement(By.XPath("//button[contains(text(),'Continue')]")); diff --git a/nipts-pts-automation-tests/Pages/SignInPage.cs b/nipts-pts-automation-tests/Pages/SignInPage.cs index 939a17c..65d1b98 100644 --- a/nipts-pts-automation-tests/Pages/SignInPage.cs +++ b/nipts-pts-automation-tests/Pages/SignInPage.cs @@ -63,7 +63,7 @@ public bool IsSignedOut() public void EnterPassword() { - if (PageHeading.Text.Contains("This is for testing use only")) + if (PageHeading.Text.Contains("Private beta testing login")) { EnvPassword.SendKeys(ConfigSetup.BaseConfiguration.TestConfiguration.EnvPassword); Continue.Click(); diff --git a/nipts-pts-automation-tests/Steps/AP-GB/LoginSteps.cs b/nipts-pts-automation-tests/Steps/AP-GB/LoginSteps.cs index 5688a19..b6185e7 100644 --- a/nipts-pts-automation-tests/Steps/AP-GB/LoginSteps.cs +++ b/nipts-pts-automation-tests/Steps/AP-GB/LoginSteps.cs @@ -33,7 +33,7 @@ public void GivenINavigateToPETSATravelDocumentURL() { var url = urlBuilder.Default("App").Build(); _driver?.Navigate().GoToUrl(url); - Assert.True(landingPage?.IsPageLoaded("This is for testing use only"), "Application page not loaded"); + Assert.True(landingPage?.IsPageLoaded("Private beta testing login"), "Application page not loaded"); } [Given(@"I have provided the password for Landing page")]