void SetNumberOfItems(int items) { elements.GetNumberOfItemsTextBlock().SetValue(items.ToString()); elements.GetSetNumberOfItemsButton().Click(); }