-
-
Save testautomationtribe/b1cac5cb954cb6745ccdbfbc70b58110 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 DashBoardHeaderPObject | |
{ | |
[FindsBy(How = How.CssSelector, Using = "#wp-admin-bar-my-account .ab-item")] | |
protected IWebElement UserNameTxt { get; set; } | |
/// <summary> | |
/// Get Displayed User Name | |
/// </summary> | |
/// <returns></returns> | |
public string GetUser() | |
{ | |
return UserNameTxt.Text; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment