Exemplo n.º 1
0
        public void ThenPopupAnConfirmationDialog()
        {
            try
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.CreateTest("Add New Property -- Cancel add property under Property Details Section");

                AddNewPropertyPage addNewProperty = new AddNewPropertyPage();

                if (addNewProperty.IsCancelConfirmationDialogDisplayed())
                {
                    Base.test.Log(AventStack.ExtentReports.Status.Pass, "Test passed, pop up confirmation dialog successfully");
                }

                else
                {
                    Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, pop up confirmation dialog unsuccessfull");
                }
            }
            catch (Exception e)
            {
                Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, pop up confirmation dialog unsuccessfull" + e.Message);
            }
        }