Ejemplo n.º 1
0
        public static void IShouldSeeTextInTheElement(string Text, string ElementName)
        {
            string ElementLocator = AllPages.getElementLocator(ElementName);

            Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator));
            string TextToAssert = WebHelp.ReadFromWebelement(ElementName, "text");

            Assert.AreEqual(TextToAssert, Text);
            WebHelp.ITakeSceenShot();
        }