Esempio n. 1
0
        public void StartUpBrowser()
        {
            _browserRepo = new BrowserRepo();
            _browserRepo.InitializeBrowser();
            _driver = _browserRepo.SetUpBrowser();
            var basepage = new Basepage(_driver);

            basepage.GoToHomePage();
        }
Esempio n. 2
0
        public void CheckHeaderMenu()
        {
            var desktop             = (string)TestContext.DataRow["DesktopTab"];
            var laptopsAndNotebooks = (string)TestContext.DataRow["LaptopsAndNotebooksTab"];
            var components          = (string)TestContext.DataRow["ComponentsTab"];
            var tablets             = (string)TestContext.DataRow["TabletsTab"];

            Basepage basepage = new Basepage(_driver);
            Homepage homepage = basepage.GoToHomePage();

            var validateTab = homepage.ValidateHeaderTabs(desktop);
            var comp        = homepage.ValidateHeaderTabs(components);
            var tabletsComp = homepage.ValidateHeaderTabs(tablets);

            //var mobileDevices = homepage.ValidateHeaderTabs(laptopsAndNotebooks);

            Assert.IsTrue(validateTab);
            Assert.IsTrue(comp);
            Assert.IsTrue(tabletsComp);
            //Assert.IsTrue(mobileDevices);
        }
        public void GivenIAmOnTheOpencartLandingPage()
        {
            Basepage basepage = new Basepage(new ChromeDriver());

            basepage.GoToHomePage();
        }