public void AddDeleteCaseParties() { Run((driver) => { #region logon into Elements var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); loginWindow.SelectModule(); #endregion #region Create new Case CasePage casePage = new CasePage(driver); casePage.CreateCase("Smoke test- Add Delete Case Parties"); #endregion #region Add and Delete Case Parties casePage.AddParties("Short name", "AA"); casePage.EditCaseParties("AB"); casePage.DeleteCaseParties(); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); }