예제 #1
0
        public static void ISelectFromDropdown(string OptionText, string DropDownName)
        {
            string ElementLocator = AllPages.getElementLocator(DropDownName);

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

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

            Assert.IsTrue(WebHelp.WaitToAppear(ElementLocator));
            WebHelp.SelectWebElement(ElementName);
        }
예제 #4
0
        public static void IShouldNotSeeTheElement(string ElementName)
        {
            string ElementLocator = AllPages.getElementLocator(ElementName);

            Assert.IsTrue(WebHelp.WaitToDisppear(ElementLocator));
            WebHelp.ITakeSceenShot();
        }
예제 #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();
        }