/**
  * Clicks on download public key
  *
  * @return path to downloaded public key file
  */
 public String downloadSeamlessEncryptionPublicKey() {
   Element.click(
       testConfig,
       SeamlessEncryptionKeyDownloadButton,
       "Seamless Encryption Public Key Download Button");
   String DownloadPath = System.getProperty("user.home") + "\\Downloads";
   String PublicKeyPath =
       Browser.DesiredFileDownload(testConfig, DownloadPath, "PublicKey").getAbsolutePath();
   return PublicKeyPath;
 }
 public NewResponsePage(Config testConfig) {
   this.testConfig = testConfig;
   PageFactory.initElements(this.testConfig.driver, this);
   Browser.wait(this.testConfig, 5);
 }
 public SystemSettingsPage(Config testConfig) {
   this.testConfig = testConfig;
   PageFactory.initElements(this.testConfig.driver, this);
   Browser.waitForPageLoad(this.testConfig, SaltId);
 }
 /** Clicks on Store Card Public Key Button Waits for browse file form */
 public void clickOnUploadStorecardButton() {
   Element.click(testConfig, StoreCardPublicKeyUploadButton, "Store Card Public Key Button");
   Browser.waitForPageLoad(testConfig, browseFileForm);
 }
 /**
  * Verifies Notification text displayed on the top of page
  *
  * @param NotificationText
  */
 public void verifyNotificationText(String NotificationText) {
   Browser.waitForPageLoad(testConfig, AlertNotification);
   Helper.compareEquals(
       testConfig, "Alert Notification", NotificationText, AlertNotification.getText());
   Browser.wait(testConfig, 10);
 }
Exemplo n.º 6
0
 public IframeCCTab(Config testConfig) {
   this.testConfig = testConfig;
   PageFactory.initElements(this.testConfig.driver, this);
   Browser.waitForPageLoad(this.testConfig, creditCardMakePayment);
 }