Exemplo 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);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
        public static void ISelectTheElement(string ElementName)
        {
            string ElementLocator = AllPages.getElementLocator(ElementName);

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

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