public static void IShouldNotSeeTheElement(string ElementName) { string ElementLocator = AllPages.getElementLocator(ElementName); Assert.IsTrue(WebHelp.WaitToDisppear(ElementLocator)); WebHelp.ITakeSceenShot(); }
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(); }