Ejemplo n.º 1
0
      public void sendQuestionWithoutEmail()
      {
          HomePage home = new HomePage(driver);

          home.Navigate();
          NewsPage news = home.NewsClick();

          driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);

          Test test = news.MoreClick();

          HaveYourSayPage say = test.HaveYourSayClick();

          AskYouQuestion share = say.HowToAskClick();

          var text        = "a";
          var name        = "Maxym Hevko";
          var age         = "20";
          var postcode    = "text ";
          var phone       = "123456789";
          var countSymbol = "140/140";

          share.PushMoreComments(text);
          share.PushName(name);
          share.PushAge(age);
          share.PushPostCode(postcode);
          share.PushPhone(phone);
          share.SendClick();
          string currentUrl = share.GetUrl();
          string actualUrl  = "https://www.bbc.com/news/uk-politics-49577632";

          Assert.AreEqual(actualUrl, currentUrl);
      }