public bool IsAtAuthorPage(string authorName) { var authorPage = new AuthorPage(); PageFactory.InitElements(Browser.Driver, authorPage); return authorPage.AuthorName == authorName; }
public bool IsAuthorPage(string authorName) { var authorPage = new AuthorPage(); #pragma warning disable CS0618 // Type or member is obsolete PageFactory.InitElements(Browser.Driver, authorPage); #pragma warning restore CS0618 // Type or member is obsolete return(authorPage.AuthorName == authorName); }