Instantly share code, notes, and snippets.

@sunjeet-khokhar sunjeet-khokhar/PageObject.cs Secret
Created Jun 12, 2018

Embed
What would you like to do?
public class Trade_Me_logon
{
// Define the element and how will we find it ?
[FindsBy(How = How.Id, Using = "nz.co.trademe.trademe:id/editTextLoginEmail")]
IWebElement LoginField { get; set; }
// Do some action on the element
public void Enter_UserName(string text)
{
LoginField.SendKeys(text);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment