Jump to content

enhance your browser automation


ivan
 Share

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
                  EndIf
               Next
            EndIf
         Next
      EndIf
   Next
EndFunc ;==>_HEUpdateCell

hope it's useful for someone out there

IVAN

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