public void CreateAccount_IfEmailIdAlreadyexistAndUserTrytoCreateAccount() { Currentpage = new LandingPage(); Currentpage.As <LandingPage>().Clickon_CreateAccountLink(); Currentpage = new CreateAccountPage(); ExcelUtil.PopulateInCollection("./TestDataWestband.xlsx", "RegistrationData"); Currentpage.As <CreateAccountPage>().RegistrationFpage(ExcelUtil.ReadData(8, "Firstname"), ExcelUtil.ReadData(8, "Lastname"), ExcelUtil.ReadData(8, "Email"), ExcelUtil.ReadData(8, "Contact")); Currentpage.As <CreateAccountPage>().RegistrationSecondpage(ExcelUtil.ReadData(8, "Password"), ExcelUtil.ReadData(8, "ConfirmPassword")); Currentpage.As <CreateAccountPage>().ClickonIAgreeCheckbox(); Currentpage.As <CreateAccountPage>().ClickonCreateAccountButton(); Currentpage.As <CreateAccountPage>().Wait4Element(Currentpage.As <CreateAccountPage>().Snakbar_UseremailAlreadyExist); Assert.AreEqual("An account already exists with this email address. Please login (101)", ApplicationContext.Query(Currentpage.As <CreateAccountPage>().Snakbar_UseremailAlreadyExist).First().Text); Currentpage.As <CreateAccountPage>().ClickOn_Alert_OK(); }