Results 1 to 8 of 8

Thread: [RESOLVED] Select list item?

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2005
    Posts
    50

    Resolved [RESOLVED] Select list item?

    Apologize for the cross post but, I think this issue should fall here.

    Please see attached HTML file for source code:

    On the webpage, there is a option called "MANAGE ANALYTICS" that I want to click on first, then a drop down list appears and I want to select "Export File" to take me to the next page. However, the HTMLtag.click is failing. (No errors though, it just doesn't work) Anyone see what I am doing wrong?

    Thanks,
    J

    VB Code:
    1. For i = 0 To WebBrowser.Document.frames.length - 1
    2.                 For Each HTMLtag In WebBrowser.Document.frames(i).Document.All
    3.                     Select Case HTMLtag.tagName
    4.                         Case "SELECT"
    5.                             If HTMLtag.getAttribute("name") = "Admin" Then
    6.                                 For v = 0 To HTMLtag.children.length - 1
    7.                                     If Trim(HTMLtag.children(v).innerText) = Trim("MANAGE ANALYTICS") Then
    8.                                         HTMLtag.Click
    9.                                             If Trim(HTMLtag.children(v).innerText) = Trim("Export File") Then
    10.                                                 HTMLtag.Click
    11.                                             End If
    12.                                     End If
    13.                                 Next
    14.                             End If
    15.                     End Select
    16.                 Next
    17.         Next
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width