Sign in to follow this  
Followers 0
EmptySpace

_Ieimgclick and random number in alt text

7 posts in this topic

#1 ·  Posted (edited)

Hi, got little problem searched whole help file but cant figure out. So I want to click image in browser window. Its quite simple but alt text is "image35 470" and every time I open browser window that last 3 digits(470) changes . What I want is to ignore these numbers since there is only one image with alt text "image35".

I've been searching for solution all day and was trying to make something which could get needed numbers.

Edited by Edgaras

Share this post


Link to post
Share on other sites



With stringinstr I can check if image exists but how to click it? So it would be better to get these numbers. Maybe I should firstly check if image exists and use stringbetween? Any more sugestions?

Gona do some experimeting today.

Share this post


Link to post
Share on other sites

Post the source code of it. There are also other ways without having to use String commands


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

_IEImgClick - Simulate a mouse click on an image. Match by sub-string match of alt text, name, or src.

Does the name or src change? Can you not use one of those?

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

I didint tested yet. This is how image looks

<img class="border" alt="Image35 1142 " src="imgs/image.php?id=image35.png&q=1142">

These highlighted numbers always changes.

Share this post


Link to post
Share on other sites

Try this:

$imgs = _IETagNameGetCollection($oIE, "img")
For $img In $imgs
If String($oInput.classname) = "border" Then
  $test = $img
ExitLoop

But we need more information to work on it. As i already told you post the source


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0