// Added for BSTCPO-2694 3/6/15
 // If you are signed out, it will open the preferences and then go to the
 // advanced tab.
 // If you are not signed out it will go into the preferences and sign you
 // out.
 public void sign_Out_If_Signed_In() throws FindFailed {
   Pattern pSignedOut = new Pattern("CP_Red_Office_16x16_Offline.png").similar((float) .95);
   if (sikuliScreen.exists(pSignedOut) != null) // looks to see if you are
   // logged out. Logs a
   // message that you are
   // already signed out,
   // or that you will be
   // signed out.
   {
     logThis("HJB You are already logged out!");
     sikuliScreen.wait(0.5);
     sikuliScreen.rightClick("CP_Red_Office_16x16_Offline.png");
     sikuliScreen.wait(.4);
     sikuliScreen.click("ds_menu_preferences.png");
     sikuliScreen.mouseMove("ds_preferences_account.png");
     sikuliScreen.wait(0.4);
   } else {
     logThis("HJB You are signed in, and you will be logged out.");
     sikuliScreen.wait(.4);
     sikuliScreen.rightClick("taskbar_cpoicon_online_visible.png");
     sikuliScreen.wait(.4);
     sikuliScreen.click("ds_menu_preferences.png");
     sikuliScreen.mouseMove("ds_preferences_account.png");
     sikuliScreen.wait(0.4);
     sikuliScreen.mouseDown(Button.LEFT);
     sikuliScreen.mouseUp(Button.LEFT);
     sikuliScreen.click("ds_preferences_account_signout.png");
     sikuliScreen.wait(6.0);
   }
   sikuliScreen.click("ds_preferences_apply.png");
 }
  public void menu_Settings() throws FindFailed {
    // sikuliScreen.click("ds2_menu_options_settings.png");

    // Ugly way to get around ellipsis image not appearing
    Pattern pSettings = new Pattern("ds2_menu_options_2.png").targetOffset(139, 0);
    sikuliScreen.mouseMove(pSettings);
    sikuliScreen.click(pSettings);
    sikuliScreen.wait(0.4);
    sikuliScreen.mouseMove("ds2_menu_options_settings.png");
    sikuliScreen.click("ds2_menu_options_settings.png");
  }
  // Added for BSTCPO-2694 3/6/15
  // Also used by BSTCPO-2666
  // If you are signed out, this will sign you back in.
  public void sign_In_If_Signed_Out() throws FindFailed {
    String password =
        basicUserUnderTestPwd; // using this because public static String was out of scope.
    Pattern pSignedOut = new Pattern("CP_Red_Office_16x16_Offline.png").exact();
    if (sikuliScreen.exists(pSignedOut)
        != null) // looks to see if the icon is gray, and then logs the message.
    {
      logThis("HJB You are logged out, and now will need to be logged in!");

      sikuliScreen.rightClick("CP_Red_Office_16x16_Offline.png");
      sikuliScreen.wait(.4);
      sikuliScreen.click("ds_menu_preferences.png");
      sikuliScreen.mouseMove("ds_preferences_account.png");
      sikuliScreen.wait(0.4);
      sikuliScreen.mouseDown(Button.LEFT);
      sikuliScreen.mouseUp(Button.LEFT);
      sikuliScreen.click("ds_preferences_account_signin.png"); // Clicks the sign in button
      sikuliScreen.wait(0.4);
      sikuliScreen.click(
          "ds_preferences_account_signin_enter_password.png"); // focuses on the password field.
      sikuliScreen.wait(0.4);

      sikuliScreen.paste(password); // enters in the default password listed in the BaseTest.java.
      // sikuliScreen.paste(basicUserUnderTestPwd);
      sikuliScreen.wait(0.4);
      sikuliScreen.click("ds_preferences_account_signin_Ok.png");
      sikuliScreen.wait(6.0); // had to increase from 2.0 to 6.0 for BSTCPO-2666
      sikuliScreen.click("ds_preferences_apply.png");
    }
  }
 public void settings_Advanced() throws FindFailed {
   sikuliScreen.mouseMove("ds2_settings_advanced.png");
   sikuliScreen.wait(0.4);
   sikuliScreen.mouseDown(Button.LEFT);
   sikuliScreen.mouseUp(Button.LEFT);
 }
 public void settings_General() throws FindFailed {
   sikuliScreen.mouseMove("ds2_settings_general.png");
   sikuliScreen.wait(0.4);
   sikuliScreen.mouseDown(Button.LEFT);
   sikuliScreen.mouseUp(Button.LEFT);
 }