Пример #1
0
        public void ThenIAmOnThePage(string pageName)
        {
            // setting the object
            BaseSteps.SetObject(pageName);

            // Getting the object and directing to the URL
            string storedUrl = BaseSteps.GetStoredPageUrl();

            string currentPageUrl = BaseSteps.GetUrl();

            Assert.IsTrue(storedUrl.Equals(currentPageUrl));
        }
        public void WhenIClickOnFromListOfElements(string text, string elements)
        {
            IWebElement target = BaseSteps.ExtractWebElementFromElements(BaseSteps.GetWebElements(elements), text);

            target.Click();
        }