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: Browser automation/embedding into GUI/ attaching to existing browser window

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Browser automation/embedding into GUI/ attaching to existing browser window

    Im new here in forums and coding and not sure if Im posting in right section.

    So.. What best API or whatever you call for browser automation? I mean clicking links, filling forms, gathering sources and other info. I already tried selenium WebDriver. It have all needed functions but there is no feature like attaching code into already opened browser so even doing google search it opens new browser window (opening takes ~5-10secs). Also I believe that there is no way that I could embed that browser into GUI.

    Also tried WebSpecs and old Watij but also didnt found any way to attach or embed browser into my GUI.

    So what I need is that I could create GUI with embeded browser and bunch of buttons. I click buttons then embeded browser clicks links, gets info etc.

    Any advices? Maybe java is wrong language for doing this?

    Thanks


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Browser automation/embedding into GUI/ attaching to existing browser window

    Are you talking about creating something that controls the mouse and keyboard to interact with the browser? If so you might want to check out the Robot class.

    Are you talking about writing a web crawler? If so, googling "java web crawler" will find you several libraries that do just that, or you can write your own.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Aug 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Browser automation/embedding into GUI/ attaching to existing browser window

    Robot class moves mouse and uses keyboard? Then no.

    Im looking for API such as Watij New WebSpec API or Selenium WebDriver . They are for automating browsers for testing purposes.

    I spent few days testing and reading documentation but didnt found way how to embed their used browsers into GUI. Also no way to attaching already opened browser window rather than starting new one.

    Web crawlers are for other purpose. Not fow automating things like clicking buttons, filling forms ..

Similar Threads

  1. Replies: 4
    Last Post: April 27th, 2014, 06:40 AM
  2. Browser game
    By skyller00 in forum Java Theory & Questions
    Replies: 0
    Last Post: February 4th, 2013, 04:42 PM
  3. how to stop a looping audio clip when browser window is closed
    By code-challenged in forum Java Applets
    Replies: 16
    Last Post: August 11th, 2012, 08:40 PM
  4. Take dialog out of browser window
    By IliaPrikhodko in forum Web Frameworks
    Replies: 0
    Last Post: April 15th, 2012, 07:59 PM
  5. Attaching Mouse To Window
    By bgroenks96 in forum AWT / Java Swing
    Replies: 3
    Last Post: November 4th, 2011, 07:35 AM