public void NewsPage() { driver.Navigate().GoToUrl("https://www.bbc.com/news/uk-47933096"); NewsPage newsPage = new NewsPage(driver); //HaveYourSayPage haveYourSayPage = (HaveYourSayPage)newsPage.GoToNewsSection("Have your say"); newsPage.GoToHaveYourSayPage(); }
public DoYouHaveAStoryPage GoToHaveYorSayPage() { HomePage homePage = new HomePage(_driver); homePage.GoToPage(); NewsPage newsPage = homePage.GoToNewsPage(); HaveYourSayPage haveYourSayPage = newsPage.GoToHaveYourSayPage(); DoYouHaveAStoryPage doYouHaveAStoryPage = haveYourSayPage.GoToDoYouHaveAStoryPage(); return(doYouHaveAStoryPage); }