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 6 of 6

Thread: Is it possible to make a java software interact with a website's interface without having access to the backend?

  1. #1
    Junior Member
    Join Date
    Feb 2022
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Is it possible to make a java software interact with a website's interface without having access to the backend?

    Hi,

    I'm currently under education, computer science, and I want to make a little hobby project of my own.

    At this stage we are learning Java, so this is the language I will be working with.

    My first task is to make a software able to type in different tabs/tablets. For example, username and password for a login on Facebook.

    Can anyone point me in the right direction for my approach to this?

    Thank you!

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Is it possible to make a java software interact with a website's interface without having access to the backend?

    Where is this software going to execute?
    On a PC the Robot class can be used to "type" data into a webpage.
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    Vagtcentral (February 14th, 2022)

  4. #3
    Junior Member
    Join Date
    Feb 2022
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Is it possible to make a java software interact with a website's interface without having access to the backend?

    Yes it is on PC.

    Thank you, from a quick view on this 'Robot Class' i can make it type a website, but can this also be twisted to use specific tabs on the browser?

    https://www.toolsqa.com/selenium-web...yboard-events/

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Is it possible to make a java software interact with a website's interface without having access to the backend?

    The Robot class can press any key at any location on the screen. If you have the x,y location of a tab, the Robot class can use that.
    If you don't understand my answer, don't ignore it, ask a question.

  6. #5
    Junior Member
    Join Date
    Feb 2022
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Is it possible to make a java software interact with a website's interface without having access to the backend?

    Hmm okay...

    Now I'm just thinking out loud... But I thought about making something like a ''scanner'' to find ''Username'' and then have something saying it should type in the tab, right to this.

    By using x and y, it isn't that dynamic and if the website changes it won't work anymore...

  7. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Is it possible to make a java software interact with a website's interface without having access to the backend?

    By using x and y, it isn't that dynamic and if the website changes it won't work anymore...
    Yes, that is a problem.

    making something like a ''scanner'' to find ''Username''
    Yes, that would work. However it may be a hard task.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 3
    Last Post: March 29th, 2020, 11:27 AM
  2. Replies: 2
    Last Post: November 25th, 2013, 04:12 PM
  3. how to make sure backend code is working when it doesn't have UI
    By javaworld in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 8th, 2013, 10:04 AM
  4. [SOLVED] How do I make a picture-part interact with a user?
    By SOG in forum What's Wrong With My Code?
    Replies: 9
    Last Post: September 12th, 2013, 08:34 PM