/**
   * Initializing the Object of a class PhrescoUiConstants, UIConstants, DrupalData,
   * UserInfoConstants
   *
   * @throws Exception
   */
  @Parameters(value = {"browser", "platform"})
  @BeforeTest
  public void setUp(String browser, String platform) throws Exception {
    try {
      phrescoUIConstants = new PhrescoUiConstants();
      uiConstants = new UIConstants();
      drupalConstants = new CommonDrupalData();
      userInfo = new UserInfoConstants();
      String selectedBrowser = browser;
      String selectedPlatform = platform;

      methodName = Thread.currentThread().getStackTrace()[1].getMethodName();

      System.out.println("Selected Browser to execute testcases--->>" + selectedBrowser);
      String applicationURL =
          phrescoUIConstants.getProtocol()
              + "://"
              + phrescoUIConstants.getHost()
              + ":"
              + phrescoUIConstants.getPort()
              + "/";
      welcomeScreen =
          new WelcomeScreen(
              selectedBrowser,
              selectedPlatform,
              applicationURL,
              phrescoUIConstants.getContext(),
              drupalConstants,
              uiConstants,
              userInfo);
    } catch (Exception exception) {
      exception.printStackTrace();
    }
  }
 public void windowResize() {
   phrsc = new PhrescoUiConstants();
   String resolution = phrsc.getResolution();
   if (resolution != null) {
     String[] tokens = resolution.split("x");
     String resolutionX = tokens[0];
     String resolutionY = tokens[1];
     int x = Integer.parseInt(resolutionX);
     int y = Integer.parseInt(resolutionY);
     Dimension screenResolution = new Dimension(x, y);
     driver.manage().window().setSize(screenResolution);
   } else {
     driver.manage().window().maximize();
   }
 }