public void ClearInvoiceTbl() { _browser.WaitForAngular(); WaitForElementID("buttonBasketCreateInvoice"); //basketpage.RemoveInvoiceFromBasket(); //var listInvoice = basketpage.RemoveInvoiceFromBasket(); var removeInvoice = _browser.FindElements(By.Id("buttonBasketRemoveInvoice")); for (var i = 0; i < removeInvoice.Count; i++) { removeInvoice[i].Click(); basketpage.DeleteInvoiceSendYes(); } }