Tabnine Logo
HtmlButton.getEnclosingForm
Code IndexAdd Tabnine to your IDE (free)

How to use
getEnclosingForm
method
in
com.gargoylesoftware.htmlunit.html.HtmlButton

Best Java code snippets using com.gargoylesoftware.htmlunit.html.HtmlButton.getEnclosingForm (Showing top 5 results out of 315)

origin: net.disy.htmlunit/htmlunit

/**
 * {@inheritDoc}
 */
@Override
protected Page doClickAction(final Page defaultPage) throws IOException {
  final String type = getTypeAttribute().toLowerCase();
  final HtmlForm form = getEnclosingForm();
  if (form != null) {
    if (type.equals("submit")) {
      return form.submit(this);
    }
    else if (type.equals("reset")) {
      return form.reset();
    }
  }
  return defaultPage;
}
origin: org.jenkins-ci/htmlunit

/**
 * {@inheritDoc}
 */
@Override
protected Page doClickAction(final Page defaultPage) throws IOException {
  final String type = getTypeAttribute().toLowerCase();
  final HtmlForm form = getEnclosingForm();
  if (form != null) {
    if (type.equals("submit")) {
      return form.submit(this);
    }
    else if (type.equals("reset")) {
      return form.reset();
    }
  }
  return defaultPage;
}
origin: org.jvnet.hudson/htmlunit

/**
 * {@inheritDoc}
 */
@Override
protected Page doClickAction(final Page defaultPage) throws IOException {
  final String type = getTypeAttribute().toLowerCase();
  final HtmlForm form = getEnclosingForm();
  if (form != null) {
    if (type.equals("submit")) {
      return form.submit(this);
    }
    else if (type.equals("reset")) {
      return form.reset();
    }
  }
  return defaultPage;
}
origin: HtmlUnit/htmlunit

final String formId = getAttributeDirect("form");
if (DomElement.ATTRIBUTE_NOT_DEFINED == formId || !hasFeature(FORM_FORM_ATTRIBUTE_SUPPORTED)) {
  form = getEnclosingForm();
origin: net.sourceforge.htmlunit/htmlunit

final String formId = getAttributeDirect("form");
if (DomElement.ATTRIBUTE_NOT_DEFINED == formId || !hasFeature(FORM_FORM_ATTRIBUTE_SUPPORTED)) {
  form = getEnclosingForm();
com.gargoylesoftware.htmlunit.htmlHtmlButtongetEnclosingForm

Popular methods of HtmlButton

  • click
  • getTypeAttribute
    Returns the value of the attribute "type". Refer to theHTML 4.01 [http://www.w3.org/TR/html401/] doc
  • getValueAttribute
    Returns the value of the attribute "value". Refer to theHTML 4.01 [http://www.w3.org/TR/html401/] do
  • setAttribute
  • <init>
    Creates a new instance.
  • getAttribute
    Overwritten, because Internet Explorer doesn't follow the spec when the type isn't specified. It wil
  • getNameAttribute
    Returns the value of the attribute "name". Refer to theHTML 4.01 [http://www.w3.org/TR/html401/] doc
  • hasAttribute
  • getPage
  • getEnclosingFormOrDie
  • getTextContent
  • isDisabled
  • getTextContent,
  • isDisabled,
  • getAttributeDirect,
  • getHtmlPageOrNull,
  • hasFeature

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now