Results 1 to 3 of 3
  1. #1
    ahmad_javadi is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Default using of htmlunit library

    Hi
    I am using of htmlunit library and Firebug addon for firefox and for example fill textbox in google and click search with this code:
    public static void main() throws IOException{
    WebClient browser;
    browser = new WebClient();
    HtmlPage page;
    page=(HtmlPage) browser.getPage("www.google.com");
    HtmlForm form=page.getFormByName("f");

    form.getInputByName("q").setValueAttribute("search topic");
    page=(HtmlPage) form.getInputByName("btnG").click();
    }
    but i have problem with componet like component that we write our mail content in the yahoo that probably use javascript instead of simple textArea
    and i want help me that how i can fill this component outomatic with htmlunit library or other thing?
    thanks

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,298
    Rep Power
    20

    Default

    Quote Originally Posted by ahmad_javadi View Post
    but i have problem with componet like component that we write our mail content in the yahoo that probably use javascript instead of simple textArea
    They probably disliike spammers as much as the rest of us do.

    and i want help me that how i can fill this component outomatic with htmlunit library or other thing?
    thanks
    Oooooh no.

Similar Threads

  1. i cannot give this page with htmlunit
    By ansar313 in forum New To Java
    Replies: 11
    Last Post: 05-20-2011, 08:38 PM
  2. use of pressAccessKey in htmlunit
    By ahmad_javadi in forum New To Java
    Replies: 1
    Last Post: 07-21-2010, 01:22 PM
  3. Mp4 Library
    By kingler112 in forum Advanced Java
    Replies: 1
    Last Post: 04-27-2010, 02:54 PM
  4. I want to put the native library in library path in mac os x
    By Hussain Ali in forum Advanced Java
    Replies: 2
    Last Post: 02-24-2010, 07:55 AM
  5. Tell me jar file for library library org.bouncycastle.cms
    By 82rathi.angara in forum New To Java
    Replies: 10
    Last Post: 09-09-2008, 05:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •