internal void ClickPostLink(NewPostPage newPostPage) { string xpath = $"//a[contains(text(), '{ViewPostLinkText}')]"; WaitForPostLinkToAppear(xpath); var newPostLink = browser.FindByXpath(xpath).First(); newPostLink.Click(); newPostPage.SetNewUrl(browser.GetCurrentUrl()); }