Skip to content

Instantly share code, notes, and snippets.

@testautomationtribe
Last active July 12, 2016 19:48
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/9582959342f13268e202e46061bea7ee to your computer and use it in GitHub Desktop.
Save testautomationtribe/9582959342f13268e202e46061bea7ee to your computer and use it in GitHub Desktop.
using OpenQA.Selenium;
using OpenQA.Selenium.Support.PageObjects;
namespace TatAutomationFramework.Web.Pages
{
public class HeaderPObjectTwo
{
public HeaderPObjectTwo()
{
PageFactory.InitElements(TestBase.driver, this);
}
/// <summary>
/// Property of the logo element
/// </summary>
[FindsBy(How = How.Id, Using = "site-title")]
protected IWebElement Logo { get; set; }
/// <summary>
/// Property of the logo element
/// </summary>
[FindsBy(How = How.Id, Using = "site-description")]
protected IWebElement Tagline { get; set; }
/// <summary>
/// Method Check logo is displayed
/// </summary>
/// <returns>bool</returns>
public bool IsLogoDisplayed()
{
return Logo.Displayed;
}
/// <summary>
/// Method Check Tagline is Correct
/// </summary>
/// <returns>string</returns>
public string IsTaglineCorrect()
{
return Tagline.Text;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment