Created
March 19, 2017 17:27
-
-
Save angelovstanton/a54ecf307802012b084b760065124580 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 void PurchaseItem( | |
string itemUrl, | |
string itemPrice, | |
ClientLoginInfo clientLoginInfo, | |
ClientPurchaseInfo clientPurchaseInfo) | |
{ | |
this.itemPage.Navigate(itemUrl); | |
this.itemPage.ClickBuyNowButton(); | |
this.previewShoppingCartPage.ClickProceedToCheckoutButton(); | |
this.signInPage.Login(clientLoginInfo.Email, clientLoginInfo.Password); | |
this.shippingAddressPage.FillShippingInfo(clientPurchaseInfo); | |
this.shippingAddressPage.ClickDifferentBillingCheckBox(clientPurchaseInfo); | |
this.shippingAddressPage.ClickContinueButton(); | |
this.shippingPaymentPage.ClickBottomContinueButton(); | |
this.shippingAddressPage.FillBillingInfo(clientPurchaseInfo); | |
this.shippingAddressPage.ClickContinueButton(); | |
this.shippingPaymentPage.ClickTopContinueButton(); | |
double totalPrice = double.Parse(itemPrice); | |
this.placeOrderPage.AssertOrderTotalPrice(totalPrice); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment