ThomasQ Posted July 24, 2009 Share Posted July 24, 2009 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 More sharing options...
Juvigy Posted July 24, 2009 Share Posted July 24, 2009 _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 More sharing options...
ThomasQ Posted July 24, 2009 Author Share Posted July 24, 2009 Many Thanks! I used _IELinkClickByIndex ($oIE, 15) to crudely select the link, but I'll try the $test.. Slowly getting out of total n00bland Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now