Example #1
0
        public void SearchAndValidate()
        {
            SelectBrowser((int)Browser.Chrome);

            browser.FindElement(GooglePageObjects.searchBox).SendKeys("topdanmark");

            ExtensionClass.FindElement(GooglePageObjects.dropdownResultList, browser);

            string topResult = browser.FindElement(GooglePageObjects.dropdownResultList).Text;

            Assert.AreEqual("topdanmark", topResult);
        }
Example #2
0
        public void OpenWebPageOnFireFox()
        {
            SelectBrowser((int)Browser.Firefox);

            browser.Navigate().GoToUrl(TopdanmarkPageObject.topdanmarkurl);

            try
            {
                ExtensionClass.FindElement(TopdanmarkPageObject.topdanmarkLogo, browser);
            }
            catch
            {
                Assert.Fail("Not able to load the webpage on Firefox");
            }
        }