@Test
  public static void checktotalportstate() throws InterruptedException, IOException {
    getXpath("gettotalportstatexpath").click();

    String ttps = getXpath("totalportstatettureadyxpath").getText();
    if (ttps.equalsIgnoreCase("TTUReady")) {
      try {
        TakeScreenShot.captureScreenshot(
            "C://selenium//CheckPortStatus_" + System.currentTimeMillis() + ".jpg");
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      System.out.println("---Total port state is---" + ttps);

      getXpath("ttpsdonebuttonxpath").click();
      Thread.sleep(8000);
      TestUtil.windowParent();

    } else {
      System.out.println("---some issue found ,taking the screen shot");
      try {
        TakeScreenShot.captureScreenshot(
            "C://selenium//CheckPortStatus_" + System.currentTimeMillis() + ".jpg");
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }
  }
  @Test
  public static void ipcdownload() throws Exception {
    System.out.println("---clicking on ipcdownload link...");
    getXpath("Ipcdownloadxpath").click();
    Thread.sleep(10000);
    try {
      try {
        TakeScreenShot.captureScreenshot(
            "C://selenium//IPCDownload_" + System.currentTimeMillis() + ".jpg");
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      System.out.println("---clicking on ipcdownload button");
      explicitWaitclick("Ipcdownloadbuttonxpath");
      explicitWaitclick("Ipcdownloaddonexpath");
      System.out.println("Completed------ IPC Download");
      logs.debug("Completed------ IPC Download");
      Thread.sleep(10000);

    } catch (Exception e) {
      System.out.println("---some issue found,taking the screen shot...");
      TakeScreenShot.captureScreenshot(
          "C://selenium//IPCDownload_" + System.currentTimeMillis() + ".jpg");
      System.out.println("Failed------ IPC Download");
      logs.debug("Failed------ IPC Download");
    }
    TestUtil.windowParent();
  }