Beispiel #1
0
        public void WhenIClickOnInventorySummaryTab()
        {
            Console.WriteLine("Current Page Title ====" + Driver.GetDriver().Title);

            if (!Driver.GetDriver().Title.Contains(Pages.InventoryPage().Title))
            {
                Pages.HomePage().InventoryTab.Click();
                Driver.GetDriver().Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(100);
                Console.WriteLine("Page Title when Inventorty Summary tab is clicked:--->" + Driver.GetDriver().Title);
                Wait.Until(x => (x.Title != Pages.InventoryPage().Title));
                //Assert.AreEqual(Pages.InventoryPage().Title, Driver.GetDriver().Title, "Page title is different than " + Pages.InventoryPage().Title);
            }
        }
 public void GivenIAmAtTheGoogleHomePage()
 {
     Assert.AreEqual(Pages.HomePage().Title, Driver.GetDriver().Title, "page title is different than " + Driver.GetDriver().Title);
 }
Beispiel #3
0
 public void WhenIClickOnInventorySummaryTab()
 {
     Pages.HomePage().InventoryTab.Click();
     //Assert.AreEqual(Pages.InventoryPage().Title, Driver.GetDriver().Title, "Page title is different than " + Pages.InventoryPage().Title);
 }