Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Walk IE object for JAVA tag/ID Names

Status
Not open for further replies.

Cotton9

MIS
Feb 3, 2002
57
US
Have a JAVA based web page we are attempting to click a button on. There is no source presented under IE View/Source. How do we identify the getelementsTabName("???") string? We have no access to the web page source.

Is there a way to walk the object in Excel object browser to locate all the TagNames or ID strings?

OR is there a simpler method to identify and click the target button?

Thanks,

Daryl
 
Need to determine the export button tag name or Id of a Sun Java button to download the displayed WEB page. The web page is a SUN application generated page so we do not have access to 'any' internal names or tags on the page.
Below is the code we have to open and wait for the page to complete loading.

Code:
Sub ztestfile()

    Dim oIE As Object  
    Dim cURL As String
    Dim lLoadSucccess As Boolean
    Dim nButton As Integer

    lLoadSuccess = False
    cURL = "[URL unfurl="true"]http://internalwebsite.mil"[/URL]

    Set oIE = CreateObject("InternetExplorer.Application")

    oIE.Visible = True
    lLoadSuccess = LoadWebPage(oIE, cURL)  ' wait for page load

    ' click export button to begin download process

    ' ????? how to click button ????

    ' process exported report and re-distributed via e-mail
end sub

Any ideas on how to click the export button or determinte its name/ID? Below is the VBA command/s we are attempting to use. Maybe another method?

oIE.Document.getElementsByName( <buttonName> ).click
oIE.Document.getElementsByID( <buttonID> ).click

Searched may web sites looking for examples to no avail. Everthing we have tried returns and error or empty variable.
Without being able to click the button the project is dead.

Any help would be greatly appreciated.





D. Buckman
US Army Corps of Engineers, Omaha

Learn from the past, Live in the present, Create the future
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top