Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Need a java code to click similar buttons on a web page

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need a java code to click similar buttons on a web page

    Need a java code to click like button on the link below one by one.

    http://www.facebook.com/addpage

    Can someone help ??


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Need a java code to click similar buttons on a web page

    My suggestion is to try writing the code yourself, and if stuck come back. Robot can be used to have a Java program click another program's buttons.

  3. #3
    Member angstrem's Avatar
    Join Date
    Mar 2013
    Location
    Ukraine
    Posts
    200
    My Mood
    Happy
    Thanks
    9
    Thanked 31 Times in 29 Posts

    Default Re: Need a java code to click similar buttons on a web page

    I've dealt with similar problems. What your program have to do is:
    1. Login to FB
    2. Send requests, correspondent to the "Like" button clicks.

    I don't know, whether FB has it's own API for Java developers, but if it does than your task may be as trivial as reading documentation to that API.
    If there's no API for FB, than you'll have to implement the login and "like" button click process by yourself. I recommend to use some traffic analyser (such as HttpFox addon for Firefox, which I find to be pretty convenient) in order to observe, how does these processes work. And than you use some Java API for working with the network (either standard one, or you may find some more convenient alternatives over the Internet) in order to repeat these processes in automatic mode.

Similar Threads

  1. How Do I Automatically Detect Java Version via Web Page without Clicking Anything
    By universityofky in forum Other Programming Languages
    Replies: 0
    Last Post: February 25th, 2013, 12:56 PM
  2. How to download protected web page using JAVA
    By angeles86 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 22nd, 2012, 07:20 AM
  3. Notepad is opening on click of submit instead navigating to other page
    By pb60705 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 10th, 2011, 07:23 AM
  4. Control web page from java swing frame
    By gafaec in forum AWT / Java Swing
    Replies: 2
    Last Post: August 16th, 2011, 08:57 AM
  5. Downloading web page with java script enabled through Java
    By mashimaro in forum Java Networking
    Replies: 1
    Last Post: November 13th, 2010, 09:28 PM