public void CheckIfAddButtonIsDisabled() { var task1 = new Task1(this.Driver); task1.NavigateToPage(GetHost() + "task_1"); task1.AddAmount("product1", "1"); var elementName = task1.GetProductName(); task1.RemoveProduct(); Assert.False(task1.IsButtonEnabled(), "add buton is not disabled"); }