This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 24183
    
  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
 
Similar Threads
URL parameters not getting passed during javascript submit
How to get a scriptlet value for javascript validation
Working with a Select group and cloneNode in JavaScript
jQuery tabs UI issue
How to avoid using formbean and redirect to another JSP ?