[Fact] //Admin_31 public void VerifyShowDepositKeys() { try { string accountId; string toastMessage; string product; string accountProvider; string fiatCurrency; product = TestData.GetData("TCAdmin31_Product"); accountProvider = TestData.GetData("TCAdmin31_AccountProvider"); fiatCurrency = TestData.GetData("TCAdmin31_FiatCurrency"); accountId = TestData.GetData("TCAdmin31_AccountID"); AdminFunctions adminfunctions = new AdminFunctions(TestProgressLogger); AdminCommonFunctions admincommonfunctions = new AdminCommonFunctions(TestProgressLogger); AdminAccountsPage adminAccountPage = new AdminAccountsPage(TestProgressLogger); // Login in admin adminfunctions.AdminLogIn(TestProgressLogger, Const.ADMIN1); // This method is used to navigate to accounts page and select the accountId passed adminAccountPage.GetAccountDetailsByAccountId(accountId); // Submit Show Deposit Keys adminAccountPage.SubmitDepositKeys(product, accountProvider); // Verify Create DepositKey Toast success msg toastMessage = adminAccountPage.CreateDepositKeyToastMessage(); Assert.Equal(Const.DepositKeySuccessMsg, toastMessage); TestProgressLogger.LogCheckPoint(LogMessage.VerifyToastMSG); // Verify No FIAT is listed in the product droplist Assert.True(adminAccountPage.VerifyFIATCurrencyIsNotPresent(fiatCurrency)); // Verify multiple Deposit Key can be created Assert.True(adminAccountPage.VerifyMultipleDepositKey()); // Verify Copy button functionality is working Assert.True(adminAccountPage.VerifyCopyDepositKey()); // Logout from admin. admincommonfunctions.UserMenuBtn(); adminfunctions.AdminLogOut(); } catch (NoSuchElementException ex) { TestProgressLogger.TakeScreenshot(); TestProgressLogger.LogCheckPoint(ex.Message + ex.StackTrace); TestProgressLogger.LogError(LogMessage.VerifyShowDepositKeysTestFailed, ex); throw; } catch (Exception e) { TestProgressLogger.TakeScreenshot(); TestProgressLogger.LogCheckPoint(e.Message + e.StackTrace); TestProgressLogger.LogError(LogMessage.VerifyShowDepositKeysTestFailed, e); throw e; } finally { TestProgressLogger.EndTest(); } }