Log in

View Full Version : vba to click on a icon on a webpage



kevvukeka
08-20-2013, 12:35 AM
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..

kevvukeka
08-23-2013, 01:39 AM
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:

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

SamT
08-23-2013, 08:38 AM
Moved Thread to Other Applications Help

kevvukeka
08-24-2013, 12:08 AM
thanks sam. i wasnt aware of this...

SamT
08-24-2013, 07:02 AM
No problem.

At least you learned something :)

kevvukeka
09-04-2013, 11:02 PM
Can someone please help me on this.......

Juice
11-30-2016, 02:33 AM
Did you find a solution for that tswa_text problem? Iam facing the same problem