Esempio n. 1
0
        public bool IsAtAuthorPage(string authorName)
        {
            var authorPage = new AuthorPage();
            PageFactory.InitElements(Browser.Driver, authorPage);

            return authorPage.AuthorName == authorName;
        }
Esempio n. 2
0
        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);
        }