コード例 #1
0
 public void WhenMainPageIsOpened()
 {
     Console.WriteLine("Main Page is Opened");
     CustomMethods.AcceptCookie(driver);
     //Here I'm cheating, because time to time there are random banners for the new registered clients,
     //I'm just refreshing the page 2 times to skip them :(
     for (int i = 0; i < 2; i++)
     {
         driver.Navigate().Refresh();
     }
 }
コード例 #2
0
        public void GivenIHaveAccountCreated()
        {
            CustomMethods.GoToURL(driver, "https://booking.com");
            //driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            //Thread.Sleep(2000);
            mainPage.ChooseDefaultSettings();
            mainPage.GoToSignInPage();

            signInPage.TypeCredentials();
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            //Thread.Sleep(5000);
            CustomMethods.AcceptCookie(driver);
        }