Exemple #1
0
        public void WhenINavigateToNews()
        {
            CommonNavigation commonNavigation = new CommonNavigation(driver);
            WebDriverWait    wait             = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
            var more = wait.Until(ExpectedConditions.ElementIsVisible(By.CssSelector("a.header__menulink--megamenu.js-menulink[href='/en-us/more']")));

            Actions action = new Actions(driver);

            action.MoveToElement(more).Perform();
            wait.Until(ExpectedConditions.ElementIsVisible(By.CssSelector("a.header__menulink--submenu[href = '/en-us/more/news-events/news'")));

            commonNavigation.news.Click();
        }
Exemple #2
0
        public void WhenIWantToClickContact()
        {
            CommonNavigation commonNavigation = new CommonNavigation(driver);

            commonNavigation.contact.Click();
        }