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

            return authorPage.AuthorName == authorName;
        }
Ejemplo 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);
        }