Skip to content

Instantly share code, notes, and snippets.

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