Package com.crawljax.core.configuration

Examples of com.crawljax.core.configuration.InputSpecification


   * @return The {@link InputSpecification} for the input box in this crawl session. You can
   *         override this methods to add more values. By default, it loads with two bad strings,
   *         and one good string.
   */
  public InputSpecification getInputSpecification() {
    InputSpecification inputSpecification = new InputSpecification();
    InputField field = inputSpecification.field("input");
    field.setValue("Good input");
    field.setValue("This doesnt work");
    field.setValue("Neither does this");

    return inputSpecification;
View Full Code Here


    return builder.build();
  }

  private static InputSpecification getInputSpecification() {
    InputSpecification input = new InputSpecification();
    input.field("textManual").setValue(MANUAL_INPUT_TEXT);
    input.field("text2Manual").setValue(MANUAL_INPUT_TEXT2);
    input.field("checkboxManual").setValue(MANUAL_INPUT_CHECKBOX);
    input.field("radioManual").setValue(MANUAL_INPUT_RADIO);
    input.field("selectManual").setValue(MANUAL_INPUT_SELECT);
    input.field("textareaManual").setValue(MANUAL_INPUT_TEXTAREA);

    Form form = new Form();
    form.field("textMultiple").setValues(MULTIPLE_INPUT_TEXT);
    form.field("text2Multiple").setValues(MULTIPLE_INPUT_TEXT2);
    form.field("checkboxMultiple").setValues(MULTIPLE_INPUT_CHECKBOX);
    form.field("radioMultiple").setValues(MULTIPLE_INPUT_RADIO);
    form.field("selectMultiple").setValues(MULTIPLE_INPUT_SELECT);
    form.field("textareaMultiple").setValues(MULTIPLE_INPUT_TEXTAREA);
    input.setValuesInForm(form).beforeClickElement("a").withText("Submit Multiple");
    return input;
  }
View Full Code Here

    CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
    crawljax.call();
  }

  private static InputSpecification getInputSpecification() {
    InputSpecification input = new InputSpecification();
    input.field("gbqfq").setValue("Crawljax");
    return input;
  }
View Full Code Here

    CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
    crawljax.call();
  }

  private static InputSpecification getInputSpecification() {
    InputSpecification input = new InputSpecification();
    input.field("gbqfq").setValue("Crawljax");
    return input;
  }
View Full Code Here

    CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
    crawljax.call();
  }

  private static InputSpecification getInputSpecification() {
    InputSpecification input = new InputSpecification();
    input.field("gbqfq").setValue("Crawljax");
    return input;
  }
View Full Code Here

          }
        }

        // Form Input
        if (config.getFormInputValues().size() > 0) {
          InputSpecification input = new InputSpecification();
          for (NameValuePair p : config.getFormInputValues())
            input.field(p.getName()).setValue(p.getValue());
          builder.crawlRules().setInputSpec(input);
        }

        // Crawl Conditions
        if (config.getPageConditions().size() > 0) {
View Full Code Here

    return builder.build();
  }

  private static InputSpecification getInputSpecification() {
    InputSpecification input = new InputSpecification();
    input.field("textManual").setValue(MANUAL_INPUT_TEXT);
    input.field("text2Manual").setValue(MANUAL_INPUT_TEXT2);
    input.field("checkboxManual").setValue(MANUAL_INPUT_CHECKBOX);
    input.field("radioManual").setValue(MANUAL_INPUT_RADIO);
    input.field("selectManual").setValue(MANUAL_INPUT_SELECT);
    input.field("textareaManual").setValue(MANUAL_INPUT_TEXTAREA);

    Form form = new Form();
    form.field("textMultiple").setValues(MULTIPLE_INPUT_TEXT);
    form.field("text2Multiple").setValues(MULTIPLE_INPUT_TEXT2);
    form.field("checkboxMultiple").setValues(MULTIPLE_INPUT_CHECKBOX);
    form.field("radioMultiple").setValues(MULTIPLE_INPUT_RADIO);
    form.field("selectMultiple").setValues(MULTIPLE_INPUT_SELECT);
    form.field("textareaMultiple").setValues(MULTIPLE_INPUT_TEXTAREA);
    input.setValuesInForm(form).beforeClickElement("a").withText("Submit Multiple");
    return input;
  }
View Full Code Here

    crawljax.call();

  }

  private static InputSpecification getInputSpecification() {
    InputSpecification input = new InputSpecification();
    Form contactForm = new Form();
    contactForm.field("male").setValues(true, false);
    contactForm.field("female").setValues(false, true);
    contactForm.field("name").setValues("Bob", "Alice", "John");
    contactForm.field("phone").setValues("1234567890", "1234888888", "");
    contactForm.field("mobile").setValues("123", "3214321421");
    contactForm.field("type").setValues("Student", "Teacher");
    contactForm.field("active").setValues(true);
    input.setValuesInForm(contactForm).beforeClickElement("button").withText("Save");
    return input;
  }
View Full Code Here

   * @return The {@link InputSpecification} for the input box in this crawl session. You can
   *         override this methods to add more values. By default, it loads with two bad strings,
   *         and one good string.
   */
  public InputSpecification getInputSpecification() {
    InputSpecification inputSpecification = new InputSpecification();
    InputField field = inputSpecification.field("input");
    field.setValue("Good input");
    field.setValue("This doesnt work");
    field.setValue("Neither does this");

    return inputSpecification;
View Full Code Here

    return builder.build();
  }

  private static InputSpecification getInputSpecification() {
    InputSpecification input = new InputSpecification();
    input.field("textManual").setValue(MANUAL_INPUT_TEXT);
    input.field("text2Manual").setValue(MANUAL_INPUT_TEXT2);
    input.field("checkboxManual").setValue(MANUAL_INPUT_CHECKBOX);
    input.field("radioManual").setValue(MANUAL_INPUT_RADIO);
    input.field("selectManual").setValue(MANUAL_INPUT_SELECT);
    input.field("textareaManual").setValue(MANUAL_INPUT_TEXTAREA);

    Form form = new Form();
    form.field("textMultiple").setValues(MULTIPLE_INPUT_TEXT);
    form.field("text2Multiple").setValues(MULTIPLE_INPUT_TEXT2);
    form.field("checkboxMultiple").setValues(MULTIPLE_INPUT_CHECKBOX);
    form.field("radioMultiple").setValues(MULTIPLE_INPUT_RADIO);
    form.field("selectMultiple").setValues(MULTIPLE_INPUT_SELECT);
    form.field("textareaMultiple").setValues(MULTIPLE_INPUT_TEXTAREA);
    input.setValuesInForm(form).beforeClickElement("a").withText("Submit Multiple");
    return input;
  }
View Full Code Here

TOP

Related Classes of com.crawljax.core.configuration.InputSpecification

Copyright © 2018 www.massapicom. 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.