예제 #1
0
  private void initBrowser() {

    driver = getBrowser();
    driver.manage().window().maximize();
    driver.manage().timeouts().implicitlyWait(IMPLICITLY_WAIT_TIME, TimeUnit.SECONDS);
    String homeURL =
        ServerGenerator.getServerKey(URL_CONST.HOME_URL)
            + LocaleGenerator.getLocaleKey(LOCALE_CONST.LANGUAGE_URL);
    LOGGER.info("Navigating to home page");
    driver.get(homeURL);
  }
예제 #2
0
  private void initLocale() {

    LOCALES LOC = LOCALES.valueOf(PROPS.getProperty(PROPERTIES.LOCALE.name()));
    switch (LOC) {
      case ENGLISH:
        LocaleGenerator.setProps(FILES_NAMES.LOCALE_EN.toString());
        break;
      case FRENCH:
        LocaleGenerator.setProps(FILES_NAMES.LOCALE_FR.toString());
        break;
      case ARABIC:
        LocaleGenerator.setProps(FILES_NAMES.LOCALE_AR.toString());
        break;
      case INDONESIAN:
        LocaleGenerator.setProps(FILES_NAMES.LOCALE_IN.toString());
        break;
      case TURKISH:
        LocaleGenerator.setProps(FILES_NAMES.LOCALE_TU.toString());
        break;
      default:
        LocaleGenerator.setProps(FILES_NAMES.LOCALE_EN.toString());
        break;
    }
  }