Sign in to follow this  
Followers 0
ThomasQ

How to chose & use 1 object out of collection

3 posts in this topic

Hi! After almost 12 hours I'm just about done with my first script, I just got one last hurdle!!!:

I need to click a link, however its generated, and always different. The only constant in it is an ID number, wich I set in my script as $val..

Now when I use _IELinkGetCollection on the page, I get 16 different links. How do I identify the one wich contains $val, and then click it?

Thanks In Advance!!!

Share this post


Link to post
Share on other sites



_IELinkGetCollection returns 16 objects in your case.

I am guessing each object has an ID property right?

SO you do something like this:

$test=_IELinkGetCollection(...)

for $element in $test

if $element.id=$val then "do some stuff"

Next

Share this post


Link to post
Share on other sites

Many Thanks!

I used _IELinkClickByIndex ($oIE, 15) to crudely select the link, but I'll try the $test.. Slowly getting out of total n00bland :)

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