public static void ISelectFromDropdown(string OptionText, string DropDownName) { string ElementLocator = AllPages.getElementLocator(DropDownName); Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator)); WebHelp.SelectFromDropDownBySelect(OptionText, DropDownName); }
public static void IEnterThisThere(string entry, string ElementName) { string ElementLocator = AllPages.getElementLocator(ElementName); Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator)); WebHelp.EnterInToWebelement(entry, ElementName); }
public static void ISelectTheElement(string ElementName) { string ElementLocator = AllPages.getElementLocator(ElementName); Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator)); WebHelp.SelectWebElement(ElementName); }
public static void IShouldSeeTheElement(string ElementName) { string ElementLocator = AllPages.getElementLocator(ElementName); Assert.IsTrue(WebHelp.WaitToAppear(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(); }