Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created September 3, 2017 16:22
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 angelovstanton/fa9c7fa4abf62745fb06e46e7589c32b to your computer and use it in GitHub Desktop.
Save angelovstanton/fa9c7fa4abf62745fb06e46e7589c32b to your computer and use it in GitHub Desktop.
public partial class CalculatorStandardView
{
public WindowsElement ZeroButton => _driver.FindElementByName("Zero");
public WindowsElement OneButton => _driver.FindElementByName("One");
public WindowsElement TwoButton => _driver.FindElementByName("Two");
public WindowsElement ThreeButton => _driver.FindElementByName("Three");
public WindowsElement FourButton => _driver.FindElementByName("Four");
public WindowsElement FiveButton => _driver.FindElementByName("Five");
public WindowsElement SixButton => _driver.FindElementByName("Six");
public WindowsElement SevenButton => _driver.FindElementByName("Seven");
public WindowsElement EightButton => _driver.FindElementByName("Eight");
public WindowsElement NineButton => _driver.FindElementByName("Nine");
public WindowsElement PlusButton => _driver.FindElementByName("Plus");
public WindowsElement MinusButton => _driver.FindElementByName("Minus");
public WindowsElement EqualsButton => _driver.FindElementByName("Equals");
public WindowsElement DivideButton => _driver.FindElementByName("Divide by");
public WindowsElement MultiplyByButton => _driver.FindElementByName("Multiply by");
public WindowsElement ResultsInput => _driver.FindElementByAccessibilityId("CalculatorResults");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment