Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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