Esempio n. 1
0
        public static void ISelectFromDropdown(string OptionText, string DropDownName)
        {
            string ElementLocator = AllPages.getElementLocator(DropDownName);

            Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator));
            WebHelp.SelectFromDropDownBySelect(OptionText, DropDownName);
        }
Esempio n. 2
0
        public static void IEnterThisThere(string entry, string ElementName)
        {
            string ElementLocator = AllPages.getElementLocator(ElementName);

            Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator));
            WebHelp.EnterInToWebelement(entry, ElementName);
        }
Esempio n. 3
0
        public static void ISelectTheElement(string ElementName)
        {
            string ElementLocator = AllPages.getElementLocator(ElementName);

            Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator));
            WebHelp.SelectWebElement(ElementName);
        }
Esempio n. 4
0
        public static void IShouldSeeTheElement(string ElementName)
        {
            string ElementLocator = AllPages.getElementLocator(ElementName);

            Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator));
            WebHelp.ITakeSceenShot();
        }
Esempio n. 5
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();
        }