public void Contact_FillAllOfFields_CheckInformationAfterSubmitForm() { var driver = new ChromeDriver().AddReportPortal(); driver.Manage().Window.Maximize(); driver.Navigate().GoToUrl("https://testpagefor.home.blog/contact/"); driver.WaitForClickable(By.CssSelector("#g2-name")); driver.ClickWithWait(By.CssSelector(".accept")); driver.FindElement(By.CssSelector("#g2-name")).SendKeys("example"); driver.FindElement(By.CssSelector("#g2-email")).SendKeys("*****@*****.**"); driver.FindElement(By.CssSelector("#contact-form-comment-g2-comment")).SendKeys("text"); driver.WaitForClickable(By.CssSelector(".pushbutton-wide")); var actions = new Actions(driver); actions.MoveToElement(driver.FindElement(By.CssSelector(".pushbutton-wide"))).Perform(); driver.FindElement(By.CssSelector(".pushbutton-wide")).Click(); driver.WaitForClickable(By.CssSelector("h3")); var textAfterSubmit = driver.FindElement(By.CssSelector("h3")).Text; Assert.AreEqual(textAfterSubmit, "Message Sent (go back)"); }