Jump to content

problem with checking if ie element visible


Recommended Posts

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?

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

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

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