public void VerifyURLErrorMsgDisplayed() { //WebDriverWait wait = new WebDriverWait(BrowserFactory.Driver, TimeSpan.FromSeconds(10)); //wait.Until(waithelper.ExpectedConditions.InvisibilityOfElementLocated(By.XPath(".//*[contains(@class,'toast-message')]"))); //string text1 = BrowserFactory.Driver.FindElement(By.XPath("//div[contains(text(),'Exceeding a maximum of 255 characters')]")).GetText(); // PropertiesCollection.Wait_ElmToBeDisplayed(URLErrorMsg); //URLErrorMsg.Wait_ElmToBeDisplayed(); PropertiesCollection.Wait_ElementToBeClickable(URLErrorMsg, 30); string text = URLErrorMsg.GetText(); // Console.Write(text); Assert.AreEqual(true, "Error: Url is Null/Empty/Exceeding a maximum of 255 characters" == URLErrorMsg.GetText(), "ÜRL error message verified successfully"); }