public void RemoveActiveDoors([Values] DriverType type) { Init(type); GoToSecondStep(); DragAndDropDoor(); activeElementServices.GetActiveDoorForm().DeleteButton.ClickIfElementIsClickable(Manager.Driver); Manager.AcceptAlert(); try { Assert.IsTrue(activeElementServices.GetActiveDoorForm().IsValid()); } catch (NullReferenceException e) { Console.WriteLine(e.Message + "test zaliczony"); } }