I need to verify that in the web site, when fields are containing valid data, after clicking "Save" there is an alert shown that says that the "Information was saved successfully". For now I have a code to find the web element and fill the valid data like that:
IWebElement carName = driver.FindElement(By.XPath("..."));
carName.Click();
carName.SendKeys("Name of the car");
IWebElement saveButton = driver.FindElement(By.XPath("..."));
saveButton.Click();
I want when the message is shown to be verified that it was shown and the test passed.
Aucun commentaire:
Enregistrer un commentaire