/**
   * The maximum number of registrations is consistent with the maximum number of subscriber
   * information. That you can not register any more
   *
   * @throws InterruptedException
   */
  public void PositionSet_Max() throws InterruptedException {
    int count = 0;
    String elementid;
    String str = null;

    while (true) {
      result = wr.Position_Add();

      elementid = "a";

      if (result == false) {
        break;
      }

      str = Integer.toString(count);

      elementid = elementid + str;

      wr.Type_Rule();

      wr.Edit_Positionname(str);

      wr.Edit_Elementid(elementid);

      wr.Position_OK();
      // if no that there is a case in which for some reason you would click on the header part
      Thread.sleep(200);

      count++;
    }

    // The maximum number of registered check
    wr.Get_MaxNumber();

    return;
  }
  /**
   * Same recommendation location name / element ID that can not be registered
   *
   * @throws InterruptedException
   */
  public void Same_PositionName() throws InterruptedException {
    // @TODO: i18n
    String error = "推荐名稱被复制";
    String str = "Same recommend position name";

    wr.Position_Add();

    wr.Type_Rule();

    wr.Edit_Positionname(str);

    wr.Edit_Elementid("abeshi");

    wr.Position_OK();

    // It is too early to become an error
    Thread.sleep(500);

    wr.Position_Add();

    wr.Type_Rule();

    wr.Edit_Positionname(str);

    wr.Edit_Elementid("hidebu");

    wr.Position_OK();

    // It is too early to become an error
    Thread.sleep(500);

    result = wr.String_Check(error);

    // Error string judgment
    if (result != true) {
      System.out.println("TEST FAILED!!\n\n" + StackTrace.calledFrom());
    }

    wr.OK();

    wr.Edit_Positionname("Different recommend position name");

    wr.Edit_Elementid("abeshi");

    wr.Position_OK();

    // It is too early to become an error
    Thread.sleep(500);

    // @TODO: i18n
    error = "元件ID被复制";

    result = wr.String_Check(error);

    // Error string judgment
    if (result != true) {
      System.out.println("TEST FAILED!!\n\n" + StackTrace.calledFrom());
    }

    wr.Position_Cancel();

    return;
  }