public void TestRouteCheckHintRegionalCentres() //hyperlink, which rw can help us { PageHome pageHome = new PageHome(); PageFactory.InitElements(driver, pageHome); pageHome.RoutesPageButton.Click(); PageRoutes pageRoutes = new PageRoutes(); PageFactory.InitElements(driver, pageRoutes); pageRoutes.DepartureStationField.Clear(); pageRoutes.DepartureDateField.Clear(); pageRoutes.ArrivalStationField.Clear(); IWebElement depLink = pageRoutes.DepatureLinks(1); IWebElement arrLink = pageRoutes.ArrivalLinks(2); depLink.Click(); arrLink.Click(); Assert.AreEqual(depLink.Text, pageRoutes.DepartureStationField.GetAttribute("value")); Assert.AreEqual(arrLink.Text, pageRoutes.ArrivalStationField.GetAttribute("value")); }