aspose file tools*
The moose likes Java in General and the fly likes how to mimic click and javascript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to mimic click and javascript function" Watch "how to mimic click and javascript function" New topic
Author

how to mimic click and javascript function

reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
I'm writing a Java program to automatically load webpages content. If need go to the next page, the action is taken from javascript using this function:



Is there any way to mimic user's click on the button and invoke Javascript function by using Java? So that I can read the content from pages to pages.

Thanks


SCJA, SCJP5.0, SCBCD, SCWCD
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

There are testing tools that can do this kind of thing: HttpUnit and related software. Have a look at HttpUnit and let us know how you make out.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to mimic click and javascript function