how to automate navigation in an already compiled java applet

Posted on 2008-11-18
Last Modified: 2013-12-20
I'm trying to find a way to autonavigate to a certain location of a java applet.  The software is the Johnson Controls Metasys system.  It allows you to log into a web address, then it loads a java applet that you can visually see temperature controls and other such HVAC equipment.  What i would like to do is write a script, (java, vb) that will open up an internet explorer browser in the background, log into the site with proper username and password, and then navigate to the desired location.   THen i'd like to have an additional file (doesn't matter what it is) that when i activate it, it makes the current hidden browser appear.  I've attached the vbscript code that i currently have started.  Any help would be much welcomed.  THanks in advance!
Dim objShell, objIE

Set objShell = CreateObject("WScript.Shell")

Set objIE = CreateObject("InternetExplorer.Application")

objIE.navigate ""


wscript.sleep 10000 'wait 2 seconds

objShell.SendKeys "egan" 

objShell.SendKeys "{TAB}"

Wscript.Sleep 100

objShell.SendKeys "egan"

objShell.SendKeys "{ENTER}"

set objIE=Nothing

Set objShell=Nothing

Open in new window

Question by:JoeC782
    1 Comment
    LVL 2

    Accepted Solution

    Try using the Microsoft UI automation toolkit.  Description located here:

    Alternatively, you might find it simplest to use one of the tools listed here for web testing.

    Best of luck.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
    This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now