public void Test_4() { driver.Navigate().GoToUrl("https://uk.wikipedia.org"); Thread.Sleep(2000); Test_3_4_info pageHome = new Test_3_4_info(); PageFactory.InitElements(driver, pageHome); pageHome.LinkEvents.Click(); Thread.Sleep(2000); Assert.AreEqual(pageHome.CurentMonth.Text, "жовтень", "The month of event is not current!"); }
public void Test_3() { driver.Navigate().GoToUrl("https://uk.wikipedia.org"); Thread.Sleep(2000); Test_3_4_info pageHome = new Test_3_4_info(); PageFactory.InitElements(driver, pageHome); pageHome.LinkEvents.Click(); Thread.Sleep(2000); Assert.AreEqual(driver.Title, "Вікіпедія:Поточні події — Вікіпедія"); File.WriteAllText(igWorkDir + "TestsReports/Test3.txt", "Тест_3 пройден. \r\nВремя: " + CurentMoment); Thread.Sleep(2000); }