code: @SuppressWarnings("unchecked")
      public <T extends XPathBuilder> T setType(final String type) {
          this.type = type;
          return (T) this;
      }
docs: <p><b>Used for finding element process (to generate xpath address)</b></p>
  <p>Result Example:</p>
  <pre>
  //*[@type='type']
  </pre>
  
  @param type eg. 'checkbox' or 'button'
  @param <T>  the element which calls this method
  @return this element