-
-
Save testautomationtribe/e7d9240db864aacf8c2892cf4a8bc2e7 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 HeaderPObjectTwo | |
{ | |
/// <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