Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created November 13, 2016 17:26
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/ab5148653ee8080b68f313255b0980b1 to your computer and use it in GitHub Desktop.
Save angelovstanton/ab5148653ee8080b68f313255b0980b1 to your computer and use it in GitHub Desktop.
[When(@"add products")]
public void NavigateToItemUrl(Table productsTable)
{
var itemPage = UnityContainerFactory.GetContainer().Resolve<ItemPage>();
IEnumerable<dynamic> products = productsTable.CreateDynamicSet();
foreach (var product in products)
{
itemPage.Navigate(string.Concat(product.Url, "?", product.AffilicateCode));
itemPage.ClickBuyNowButton();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment