-
-
Save testautomationtribe/1e83b70bae9e60d1ca4487347eed0530 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using OpenQA.Selenium; | |
using OpenQA.Selenium.Support.PageObjects; | |
namespace TatAutomationFramework.Web.Pages | |
{ | |
public class NewsPObject | |
{ | |
[FindsBy(How = How.CssSelector, Using = ".entry-title")] | |
protected IWebElement PageHeaderTitle { get; set; } | |
/// <summary> | |
/// Verifies current page | |
/// </summary> | |
/// <returns></returns> | |
public bool IsAtPage() | |
{ | |
return PageHeaderTitle.Text.Contains("News"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment