Jump to content
Sign in to follow this  

enhance your browser automation

Recommended Posts

I wrote this last night and it works, just wanna share:

this assumes that you retreived an object $oIE for the browser in question and that this object is visible from within the function

Func _HEUpdateCell($pOldData, $pNewData)
   $oTables = _IETableGetCollection ($oIE)
   For $oTable In $oTables
      If IsObj($oTable) Then
         $TRows = $oTable.rows
         For $TRow In $TRows
            If IsObj($TRow) Then
               $TData = $TRow.GetElementsByTagName ("td")
               For $TDatum In $TData
                  If $TDatum.innerHTML == $pOldData Then
                     $TDatum.innerHTML = $pNewData
EndFunc ;==>_HEUpdateCell

hope it's useful for someone out there


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...