public void partnerAssoAddEmailIssue() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); // Initializing the objects var executionLog = new ExecutionLog(); var loginHelper = new LoginHelper(GetWebDriver()); var agent_PartnerAssociationHelper = new Agents_PartnerAssociationHelper(GetWebDriver()); //Variable String JIRA = ""; String Status = "Pass"; // try // { executionLog.Log("PartnerAssoAddEmailIssue", "Login with valid username and password"); Login("testpartnerassociation", "test1qaz!QAZ"); executionLog.Log("PartnerAssoAddEmailIssue", "Verify Page title"); VerifyTitle("test association - Details"); executionLog.Log("PartnerAssoAddEmailIssue", "Click on edit button."); agent_PartnerAssociationHelper.ClickElement("EditAsso"); agent_PartnerAssociationHelper.WaitForWorkAround(2000); agent_PartnerAssociationHelper.WaitForElementPresent("RemoveEmail", 20); agent_PartnerAssociationHelper.ClickElement("RemoveEmail"); executionLog.Log("PartnerAssoAddEmailIssue", "Click on add email.."); agent_PartnerAssociationHelper.ClickElement("AddEmail"); executionLog.Log("PartnerAssoAddEmailIssue", "Select eAddress type."); agent_PartnerAssociationHelper.Select("EmailType2", "E-Mail"); executionLog.Log("PartnerAssoAddEmailIssue", "Enter added email."); agent_PartnerAssociationHelper.TypeText("EmailAdd2", "*****@*****.**"); executionLog.Log("PartnerAssoAddEmailIssue", "Click on save button."); agent_PartnerAssociationHelper.ClickElement("Save"); executionLog.Log("PartnerAssoAddEmailIssue", "Verify added email present on page."); agent_PartnerAssociationHelper.VerifyeLabel("VerifyEmail"); agent_PartnerAssociationHelper.WaitForWorkAround(2000); executionLog.Log("PartnerAssoAddEmailIssue", "Click on edit button."); agent_PartnerAssociationHelper.ClickElement("EditAsso"); executionLog.Log("PartnerAssoAddEmailIssue", "Click on remove icon."); agent_PartnerAssociationHelper.ClickElement("RemoveEmail"); executionLog.Log("PartnerAssoAddEmailIssue", "Click on save button."); agent_PartnerAssociationHelper.ClickElement("Save"); }