Ejemplo n.º 1
0
        public void ContactFormIsSentCorrectly()
        {
            ContactUs contactUs = navigationSteps.NavigationToContacUs();

            //explicit waiter(no recomendable)
            Thread.Sleep(TimeSpan.FromSeconds(10));     //va a esperar 10 segundos y luego continuar con el test

            //explicit waiters with expected conditions(install selenium extras)


            contactUs.FillContactUsForm(ContactUs.Options.ByText, "Customer service", "*****@*****.**", "45612", @"C:\Users\ASUS\fileTest.txt", "Hello");
            string actualMessage   = contactUs.GetConfirmationMessage();
            string expectedMessage = "Your message has been successfully sent to our team.";

            Assert.AreEqual(expectedMessage, actualMessage);
        }