Пример #1
0
  private static InputSpecification getInputSpecification() {
    InputSpecification input = new InputSpecification();

    // enter "Crawljax" in the search field
    input.field("masthead-search-term").setValue("cat");
    return input;
  }
 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;
 }