Consulting

Results 1 to 7 of 7

Thread: vba to click on a icon on a webpage

  1. #1

    vba to click on a icon on a webpage

    Hi All,

    I am trying to login to my company website and open an application from list a 15 icons..

    My present code login into the website my username and pw.

    In the next scree I have a page with around 15 icons. Few of them are icons for applications and few are links to server located files. All these are click enabled(an image with a name under it),when you hover the mouse over an image, the image gets enlarged also. In this I need to click on the one that has the text "Claims as its name".

    I don't know how to list all the clickable objects on a webpage and select one..

    I tried this:

    For Each oHTML_Element In HTMLDoc.getElementsByTagName("input")
    If oHTML_Element.Type = "Claims" Then oHTML_Element.Click: Exit For
    Next
    but no use..

    Can any1 suggest me some way to move forward.

    Thanks for your help..

  2. #2
    Hi All, Can someone kindly suggest. what should I do to click on the button that has clalimsv1 on it..

    I tried the following code but it doesnt help...

    source code from webpage:
    HTML Code:
    div 
    Class="tswa_ttext">Claimsv1</div>


    my vba code:

    For Each oHTML_Element In HTMLDoc.getElementsByTagName("div")
    If oHTML_Element.innerHTML = "Claimsv1" Then oHTML_Element.Click: Exit For
    
    Next


  3. #3
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Moved Thread to Other Applications Help
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  4. #4
    thanks sam. i wasnt aware of this...

  5. #5
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    No problem.

    At least you learned something
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  6. #6
    Can someone please help me on this.......

  7. #7
    VBAX Newbie
    Joined
    Nov 2016
    Posts
    2
    Location
    Did you find a solution for that tswa_text problem? Iam facing the same problem

Posting Permissions

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