code: @When("^I type '(.+?)' on the element on index '(\\d+?)'$")
      public void seleniumType(@Transform(NullableStringConverter.class) String text, Integer index) {
          assertThat(this.commonspec, commonspec.getPreviousWebElements()).as("There are less found elements than required")
                  .hasAtLeast(index);
          while (text.length() > 0) {
              Actions actions = new Actions(commonspec.getDriver());
              if (-1 == text.indexOf("\\n")) {
                  actions.moveToElement(commonspec.getPreviousWebElements().getPreviousWebElements().get(index));
                  actions.click();
                  actions.sendKeys(text);
                  actions.build().perform();
                  text = "";
              } else {
                  actions.moveToElement(commonspec.getPreviousWebElements().getPreviousWebElements().get(index));
                  actions.click();
                  actions.sendKeys(text.substring(0, text.indexOf("\\n")));
                  actions.build().perform();
                  text = text.substring(text.indexOf("\\n") + 2);
              }
          }
      }
docs: Type a {@code text} on an numbered {@code index} previously found element.
  
  @param text
  @param index