Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created July 9, 2015 20:44
Show Gist options
  • Save angelovstanton/a36b64dabb40e4186a6d to your computer and use it in GitHub Desktop.
Save angelovstanton/a36b64dabb40e4186a6d to your computer and use it in GitHub Desktop.
public class ShippingAddressPage : BasePageSingleton<ShippingAddressPage, ShippingAddressPageMap>
{
public void ClickContinueButton()
{
this.Map.ContinueButton.Click();
}
public void FillShippingInfo(ClientPurchaseInfo clientInfo)
{
this.Map.CountryDropDown.SelectByText(clientInfo.Country);
this.Map.FullNameInput.SendKeys(clientInfo.FullName);
this.Map.Address1Input.SendKeys(clientInfo.Address1);
this.Map.CityInput.SendKeys(clientInfo.City);
this.Map.ZipInput.SendKeys(clientInfo.Zip);
this.Map.PhoneInput.SendKeys(clientInfo.Phone);
this.Map.ShipToThisAddress.Click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment