Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 26, 2017 17:24
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/315351b94c857ccc20872a15e74847f1 to your computer and use it in GitHub Desktop.
Save angelovstanton/315351b94c857ccc20872a15e74847f1 to your computer and use it in GitHub Desktop.
public partial class ShippingAddressPage
{
public string Country
{
get => new SelectElement(driver.FindElement(By.Name("enterAddressCountryCode"))).SelectedOption.Text;
set => new SelectElement(driver.FindElement(By.Name("enterAddressCountryCode"))).SelectByText(value);
}
public string FullName
{
get => driver.FindElement(By.Id("enterAddressFullName")).Text;
set => driver.FindElement(By.Id("enterAddressFullName")).SendKeys(value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment