code: @Then("^in less than '(\\d+?)' seconds, checking each '(\\d+?)' seconds, '(\\d+?)' elements exists with '([^:]*?):(.+?)'$")
      public void assertSeleniumNElementExistsOnTimeOut(Integer timeout, Integer wait, Integer expectedCount,
                                                        String method, String element) throws InterruptedException, ClassNotFoundException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
          List<WebElement> wel = null;
          for (int i = 0; i < timeout; i += wait) {
              wel = commonspec.locateElement(method, element, -1);
              if (wel.size() == expectedCount) {
                  break;
              } else {
                  Thread.sleep(wait * 1000);
              }
          }
  
          PreviousWebElements pwel = new PreviousWebElements(wel);
          assertThat(this.commonspec, pwel).as("Element count doesnt match").hasSize(expectedCount);
          commonspec.setPreviousWebElements(pwel);
  
      }
docs: Checks if {@code expectedCount} webelements are found, whithin a {@code timeout} and with a location
  {@code method}. Each negative lookup is followed by a wait of {@code wait} seconds. Selenium times are not
  accounted for the mentioned timeout.
  
  @param timeout
  @param wait
  @param expectedCount
  @param method
  @param element
  @throws InterruptedException
  @throws IllegalAccessException
  @throws IllegalArgumentException
  @throws SecurityException
  @throws NoSuchFieldException
  @throws ClassNotFoundException