Package org.encog.bot.browse.range

Examples of org.encog.bot.browse.range.Input


  protected final void loadInput(final int index, final Tag tag) {
    final String type = tag.getAttributeValue("type");
    final String name = tag.getAttributeValue("name");
    final String value = tag.getAttributeValue("value");

    final Input input = new Input(this.page);
    input.setType(type);
    input.setName(name);
    input.setValue(value);

    if (this.lastForm != null) {
      this.lastForm.addElement(input);
    } else {
      this.page.addContent(input);
View Full Code Here


    Browser b = new Browser();
    b.navigate(new URL("http://www.httprecipes.com/1/7/get.php"));
    WebPage page = b.getCurrentPage();
    Assert.assertTrue( page.getTitle().getTextOnly().indexOf("HTTP")!=-1 );
    Form form = (Form)page.find(Form.class, 0);
    Input input1 = form.findType("text", 0);   
    input1.setValue("New York");
    b.navigate(form);
    page = b.getCurrentPage();
    Assert.assertTrue( page.getTitle().getTextOnly().indexOf("HTTP")!=-1 );
  }
View Full Code Here

  protected final void loadInput(final int index, final Tag tag) {
    final String type = tag.getAttributeValue("type");
    final String name = tag.getAttributeValue("name");
    final String value = tag.getAttributeValue("value");

    final Input input = new Input(this.page);
    input.setType(type);
    input.setName(name);
    input.setValue(value);

    if (this.lastForm != null) {
      this.lastForm.addElement(input);
    } else {
      this.page.addContent(input);
View Full Code Here

TOP

Related Classes of org.encog.bot.browse.range.Input

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.