Sign in to follow this  
Followers 0
lionfaggot

problem with checking if ie element visible

10 posts in this topic

well anyway, the _IEPropertget function has a visible paramaeter. now heres the issue, it only seems to work for form ids. i need it to work with _IEFormElementGetCollection

im not sure exactly how to explain this but heres my code:

   $sForm = _IEFormGetOBJByName($object, 'main_form')
   $collection = _IEFormElementGetCollection($sForm)
   For $i = 1 To @extended
      $select = _IEFormElementGetCollection($sForm, $i)
      If _IEPropertyGet($select, "visible") Then
         _select($sForm, $i)
        
      EndIf
   Next

anyone can help me?

Share this post


Link to post
Share on other sites



this is like mission impossible, seems all the questions i ask are on the complex side or something.

Share this post


Link to post
Share on other sites

well anyway, the _IEPropertget function has a visible paramaeter. now heres the issue, it only seems to work for form ids. i need it to work with _IEFormElementGetCollection

im not sure exactly how to explain this but heres my code:

   $sForm = _IEFormGetOBJByName($object, 'main_form')
   $collection = _IEFormElementGetCollection($sForm)
   For $i = 1 To @extended
      $select = _IEFormElementGetCollection($sForm, $i)
      If _IEPropertyGet($select, "visible") Then
         _select($sForm, $i)
        
      EndIf
   Next

anyone can help me?

I think you are not getting an answer because the question is unclear.

Are you sure that _select is not being triggered on anything other than form ID's?  Have you done any error checking when calling _IEPropertyGet()?

What exactly is _select doing?

I suggest making the question more clear, letting us know what you have already done, let us know what the expected results are, and perhaps even include some of the html source.

Share this post


Link to post
Share on other sites

Func _select($sForm, $i)
  $select = _IEFormElementGetCollection($sForm, $i)
  Return _IEAction($select, "click")
  ;MsgBox(0,"","")
EndFunc

Share this post


Link to post
Share on other sites

_select() works, all i want to do is find what elements in the collection are hidden so _select() knows not to click them. which should work, _IEProperyGet() worked with form collections using other properties such as browserx and browsery just not with "visible" it just gives me an ie error. ive no clue dude

Share this post


Link to post
Share on other sites

also, if i may say, ive gotten pretty good with ie.au3 in the process of making this script. lots of things i didnt know about

Share this post


Link to post
Share on other sites

Are these form elements "input type=hidden"? If they are you can check that with something like:

If String($oInput.type) = "hidden" Then ; it is input type=hidden

Note: The visible property is only available on the browser object.

Share this post


Link to post
Share on other sites

that worked, alright man this is excellent. i have to ask why msdn documentation sucks for just about everything. i scoured for some time. how do you get your info

Share this post


Link to post
Share on other sites

microsoft explains things in a way that makes me want to kill myself

Share this post


Link to post
Share on other sites

This is a good starting point, but honestly I just knew from experience.

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