Jump to content

How to chose & use 1 object out of collection


Recommended Posts

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!!!

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...