Skip to content

Instantly share code, notes, and snippets.

@trivial-search
Created June 12, 2018 01:34
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 trivial-search/d6d5d459788897da9859b6139f875f86 to your computer and use it in GitHub Desktop.
Save trivial-search/d6d5d459788897da9859b6139f875f86 to your computer and use it in GitHub Desktop.
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