Created
February 26, 2017 17:23
-
-
Save angelovstanton/d037890b8b6fd8a18b58b31adbc299a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class ShippingAddressPage | |
{ | |
public string Country | |
{ | |
get | |
{ | |
return new SelectElement(driver.FindElement(By.Name("enterAddressCountryCode"))).SelectedOption.Text; | |
} | |
set | |
{ | |
new SelectElement(driver.FindElement(By.Name("enterAddressCountryCode"))).SelectByText(value); | |
} | |
} | |
public string FullName | |
{ | |
get | |
{ | |
return driver.FindElement(By.Id("enterAddressFullName")).Text; | |
} | |
set | |
{ | |
driver.FindElement(By.Id("enterAddressFullName")).SendKeys(value); | |
} | |
} | |
// other elements | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment