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 SideMetaPObject
{
[FindsBy(How = How.PartialLinkText, Using = "Log in")]
protected IWebElement LoginLink { get; set; }
/// <summary>
/// Navigate to login Page
/// </summary>
/// <returns></returns>
public WpLoginPObject NavigateToLogin()
{
LoginLink.Click();
return DoInitialize.PageElementsIn<WpLoginPObject>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment