public string VerifyMailBoxAdvanceProperties(TestContext testContext, bool isNewMailbox) { string status = TestStatus.Success; //Stage string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]); string email = Convert.ToString(testContext.DataRow["Email"]); string mailboxSize = Convert.ToString(testContext.DataRow["MailboxSize"]); bool isCR = Convert.ToBoolean(testContext.DataRow["IsCR"]); //Act //if (isNewMailbox) //{ // pageMailboxDashboard.OpenAdvancedProperties(); //} pageMailboxDashboard.OpenAdvancedProperties(); btnTabRefreshButtonElem.ClickWithWait("spinner"); string standing = pageMailboxDashboard.VerifyAdvanceProperties(mailboxSize, isCR); //Verify if (!string.IsNullOrWhiteSpace(standing)) { status = TestStatus.Failed; } if (isNewMailbox) { ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify New mailbox Advance Properties", "Test to verify that the Advance Properties set at the time of mailbox creation are set successfully", organizationName, "Mailbox", email, "", status, standing); } else { ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify New mailbox Advance Properties", "Test to verify that the Advance Properties set at the time of mailbox update are set successfully", organizationName, "Mailbox", email, "", status, standing); } return(status); }