Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@testautomationtribe
Created August 15, 2016 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save testautomationtribe/1e83b70bae9e60d1ca4487347eed0530 to your computer and use it in GitHub Desktop.
Save testautomationtribe/1e83b70bae9e60d1ca4487347eed0530 to your computer and use it in GitHub Desktop.
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