Examples of forms()


Examples of com.extjs.gxt.samples.resources.client.images.ExampleImages.forms()

    combos.add("ComboBox", new ComboBoxExample(), g.combobox().getHTML());
    combos.add("Advanced ComboBox", new AdvancedComboBoxExample(), g.advancedcombobox().getHTML());
    add(combos);

    Category forms = new Category("Forms");
    forms.add("Forms", new FormsExample(), g.forms().getHTML());
    forms.add("Custom Form", new CustomFormExample(), g.forms().getHTML());
    forms.add("Advanced Forms", new AdvancedFormsExample(), g.advancedforms().getHTML(), false, true, HideMode.OFFSETS);
    forms.add("DualListField", new DualListFieldExample(), g.duallistfield().getHTML());
    forms.add("File Upload", new FileUploadExample(), g.fileupload().getHTML());
    add(forms);
View Full Code Here

Examples of com.extjs.gxt.samples.resources.client.images.ExampleImages.forms()

    combos.add("Advanced ComboBox", new AdvancedComboBoxExample(), g.advancedcombobox().getHTML());
    add(combos);

    Category forms = new Category("Forms");
    forms.add("Forms", new FormsExample(), g.forms().getHTML());
    forms.add("Custom Form", new CustomFormExample(), g.forms().getHTML());
    forms.add("Advanced Forms", new AdvancedFormsExample(), g.advancedforms().getHTML(), false, true, HideMode.OFFSETS);
    forms.add("DualListField", new DualListFieldExample(), g.duallistfield().getHTML());
    forms.add("File Upload", new FileUploadExample(), g.fileupload().getHTML());
    add(forms);
View Full Code Here

Examples of com.gistlabs.mechanize.document.AbstractDocument.forms()

    String manageKindleUrl = "http://www.amazon.com/gp/digital/fiona/manage/ref=gno_yam_myk";
    AbstractDocument signinPage = agent.get(manageKindleUrl);

    debug(signinPage);

    Form form = signinPage.forms().get(0);
    form.get("email").setValue(username);
    ((Checkable) form.get("ap_signin_existing_radio")).setChecked(true);
    form.get("password").setValue(password);
    Resource managePage = form.submit();
View Full Code Here

Examples of com.gistlabs.mechanize.document.AbstractDocument.forms()

  @Test
  public void testSearchingWikipediaForAngelaMerkelInGermanLanguageUtilizingSelectAndTextInput() {
    Mechanize agent = new MechanizeAgent();
    AbstractDocument page = agent.get("http://www.wikipedia.org");
    Form form = page.forms().find(".search-form");
    form.findSelect(byIdOrName("language")).getOption("de").select();
    form.findSearch(byIdOrName("search")).set("Angela Merkel");
    Resource response = form.findSubmitButton(byIdOrName("go")).submit();
    assertTrue(response.getTitle().startsWith("Angela Merkel"));
  }
View Full Code Here

Examples of com.gistlabs.mechanize.document.AbstractDocument.forms()

    addPageRequest("http://test.com",
        newHtml("Test Page", newForm("form").id("form")));
    addPageRequest("http://test.com/form", newHtml("OK", ""));

    AbstractDocument page = agent().get("http://test.com");
    Form form = page.forms().find("#form");
    Resource response = form.submit();
    assertEquals("OK", response.getTitle());
    assertFalse(form.isDoPost());
  }
View Full Code Here

Examples of com.gistlabs.mechanize.document.AbstractDocument.forms()

    addPageRequest("http://test.com",
        newHtml("Test Page", newForm("form", "post").id("form")));
    addPageRequest("POST", "http://test.com/form", newHtml("OK", ""));

    AbstractDocument page = agent().get("http://test.com");
    Form form = page.forms().find("#form");
    AbstractDocument response = form.submit();
    assertEquals("OK", response.getTitle());
    assertTrue(form.isDoPost());
  }
View Full Code Here

Examples of com.gistlabs.mechanize.document.AbstractDocument.forms()

    addPageRequest("http://test.com",
        newHtml("Test Page", newForm("form").id("form").addText("text", null)));
    addPageRequest("http://test.com/form?text=", newHtml("OK", ""));

    AbstractDocument page = agent().get("http://test.com");
    Form form = page.forms().find("#form");
    AbstractDocument response = form.submit();
    assertEquals("OK", response.getTitle());
  }

  @Test
View Full Code Here

Examples of com.gistlabs.mechanize.document.AbstractDocument.forms()

    addPageRequest("http://test.com",
        newHtml("Test Page", newForm("form").id("form").addText("text", "Text")));
    addPageRequest("http://test.com/form?text=Text", newHtml("OK", ""));

    AbstractDocument page = agent().get("http://test.com");
    Form form = page.forms().find("#form");
    AbstractDocument response = form.submit();
    assertEquals("OK", response.getTitle());
  }

  @Test
View Full Code Here

Examples of com.gistlabs.mechanize.document.AbstractDocument.forms()

  @Test
  public void testSimpleInputSettingValueToValueBiggerThanMaxLengthWillGetAutomaticallyTruncated() {
    addPageRequest("http://test.com",
        newHtml("Test Page", newForm("form").id("form").addText("text", null, 5)));
    AbstractDocument page = agent().get("http://test.com");
    Form form = page.forms().find("#form");
    form.find(byIdOrName("text")).set("123456789");
    assertEquals("12345", form.get("text").get());
  }

  @Test
View Full Code Here

Examples of com.gistlabs.mechanize.document.AbstractDocument.forms()

    addPageRequest("http://test.com",
        newHtml("Test Page", newForm("form").id("form").addInput("mail", "email", null)));
    addPageRequest("http://test.com/form?mail=", newHtml("OK", ""));

    AbstractDocument page = agent().get("http://test.com");
    Form form = page.forms().find("#form");
    FormElement email = form.find(byIdOrName("mail"));
    assertTrue(email instanceof Email);
    assertSame(email, form.findEmail(byName("mail")));
    assertSame(email, form.findAll(byName("mail"), Email.class).get(0));
    AbstractDocument response = form.submit();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.