Get the {@link FormElement} forms from the selected elements, if any.
@return a list of {@link FormElement}s pulled from the matched elements. The list will be empty if the elements contain
no forms.
352249
public List<FormElement> forms() {
        ArrayList<FormElement> forms = new ArrayList<>();
        for (Element el: this)
            if (el instanceof FormElement)
                forms.add((FormElement) el);
        return forms;
    }
604001
@Override
    public List<String> getRolesAllowed()
    {
        return ivRolesAllowed == null ? Collections.<String> emptyList() : Arrays.asList(ivRolesAllowed);
    }
1153861
public List<com.ibm.jbatch.jsl.model.helper.TransitionElement> getTransitionElements() {
    return new ArrayList<com.ibm.jbatch.jsl.model.helper.TransitionElement>();
}
997716
public List<ElementType> toList() {
        List<ElementType> result = new ArrayList<ElementType>(size());
        for (ElementType e : this) result.add(e);
        return result;
    }
172843
public List<WebElement> findAll() {
		checkState(webDriver != null, "No WebDriver specified.");
		checkState(by != null, "No By instance for locating elements specified.");

		log.info(toString());

		final List<WebElement> result = newArrayList();

		try {
			if (timeoutSeconds > 0L) {
				WebDriverWait wait = createWebDriverWait();
				wait.until(new Function<WebDriver, List<WebElement>>() {
					@Override
					public List<WebElement> apply(final WebDriver input) {
						doFindElements(result, input);
						if (result.isEmpty()) {
							// this means, we try again until the timeout occurs
							throw new WebElementException("No matching element found.");
						}
						return result;
					}

					@Override
					public String toString() {
						return WebElementFinder.this.toString();
					}
				});
			} else {
				doFindElements(result, webDriver);
			}
			return result;
		} catch (TimeoutException ex) {
			Throwable cause = ex.getCause();
			for (Class<? extends Throwable> thClass : IGNORED_EXCEPTIONS) {
				if (thClass.isInstance(cause)) {
					return ImmutableList.of();
				}
			}
			throw new WebElementException(ex);
		}
	}
479412
@SafeVarargs
  public static <E> List<E> of(E... elements) {
    Preconditions.checkNotNull(elements, "elements");
    return Collections.unmodifiableList(Arrays.asList(elements));
  }
106481
@DefinedBy(Api.LANGUAGE_MODEL)
    public java.util.List<Symbol> getEnclosedElements() {
        return List.nil();
    }
849919
public Elements siblingElements() {
        if (parentNode == null)
            return new Elements(0);

        List<Element> elements = parent().childElementsList();
        Elements siblings = new Elements(elements.size() - 1);
        for (Element el: elements)
            if (el != this)
                siblings.add(el);
        return siblings;
    }
1211203
private function getElementsToProcess(): array
    {
        $result = [];

        foreach (get_object_vars($this) as $element) {
            if ($element instanceof FormElementInterface) {
                $result[] = $element;
            }
        }

        $result = array_merge($result, $this->extraElements);

        return $result;
    }
1292801
public Collection<Select> getAllSelects()
    {
        final List<Select> ret = new ArrayList<>(this.selects);
        ret.addAll(this.instSelects.values());
        return Collections.unmodifiableCollection(ret);
    }
166848
public java.util.List<EventSelector> getEventSelectors() {
        if (eventSelectors == null) {
            eventSelectors = new com.amazonaws.internal.SdkInternalList<EventSelector>();
        }
        return eventSelectors;
    }
129495
private final Map<String, String> getFormFields(Node parent) {
        String method = "getFormFields(Node parent)";
        if (logger.isDebugEnabled()) {
            logger.debug(enter(method));
        }
        Map<String, String> formfields = new Hashtable<String, String>();
        getFormFields(parent, formfields);
        if (logger.isDebugEnabled()) {
            logger.debug(exit(method));
        }
        return formfields;
    }
440374
public List<?> getNotSelected() {
		List options = getOptions();
		if (options == null || options.isEmpty()) {
			return Collections.EMPTY_LIST;
		}

		List notSelected = new ArrayList(options);
		notSelected.removeAll(getSelected());
		return Collections.unmodifiableList(notSelected);
	}
209369
public boolean somethingSelected() {
        boolean isSelected = false;
        if (input()) {
            WebElement webElement = element.getWebElement();
            if ("input".equalsIgnoreCase(webElement.getTagName())) {
                isSelected = webElement.isSelected();
            } else if (SELECT.equalsIgnoreCase(webElement.getTagName())) {
                Select dropdown = new Select(webElement);
                isSelected = !dropdown.getAllSelectedOptions().isEmpty();
            }
        }
        return isSelected;
    }
789178
public List<CmsUUID> getElementIds() {

        if (m_elementIds == null) {
            m_elementIds = new ArrayList<CmsUUID>(m_elements.size());
            for (CmsContainerElementBean element : m_elements) {
                m_elementIds.add(element.getId());
            }
        }
        return m_elementIds;
    }
993844
@Override
  public List<WebElement> findElements() {
    SlowLoadingElementList list = new SlowLoadingElementList(clock, timeOutInSeconds);
    try {
      return list.get().getElements();
    } catch (NoSuchElementError e) {
      return new ArrayList<>();
    }
  }
738468
public static List<Element> getAllChildElements(Element parent) {
        List<Element> result;
        NodeList nodes;
        int i;
        int max;
        Node node;

        result = new ArrayList<>();
        nodes = parent.getChildNodes();
        max = nodes.getLength();
        for (i = 0; i < max; i++) {
            node = nodes.item(i);
            if (node instanceof Element) {
                result.add((Element) node);
            }
        }
        return result;
    }