Skip to content

Instantly share code, notes, and snippets.

@testautomationtribe
Created August 21, 2016 20:16
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/da29e9ef4f7688d2ae8e73cca0b8d824 to your computer and use it in GitHub Desktop.
Save testautomationtribe/da29e9ef4f7688d2ae8e73cca0b8d824 to your computer and use it in GitHub Desktop.
using OpenQA.Selenium;
using OpenQA.Selenium.Support.PageObjects;
namespace TatAutomationFramework.Web.Pages
{
public class LoginErrorPOject
{
[FindsBy(How = How.Id, Using = "login_error")]
protected IWebElement ErrorTxt { get; set; }
/// <summary>
/// Get Displayed Error Message
/// </summary>
/// <returns></returns>
public string GetMessage()
{
return ErrorTxt.Text;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment