I have spent like 5 hours trying to find the selector for that success message down there , for my Selenium c# test with not luck. My test always fail saying cannot locate the element!!
Any idea what selector I can use???
I have tried xpath, Css, Classname with all the plugins...
public IWebElement alertSuccessfulAlert => WebDriver.FindElement(By.XPath("//div[contains(text(),'Registration is successful')]"));
public IWebElement alertSuccessfulAlert => WebDriver.FindElement(By.CssSelector("body:nth-child(2) my-app:nth-child(1) div.container:nth-child(2) > main.row:nth-child(1)"));