Jump to content

IE search tag content <p></p>


 Share

Recommended Posts

It works, thanks a lot.

   Local $oPTags = _IETagNameGetCollection($oIE, "p")
   For $oPTag In $opTags
      If $oPTag.ClassName = 'welcome-msg' Then
         $sStr1 = "SOCIO: Bienvenido, andres lopez! "
         $sStr2 = $oPTag.InnerText
         $iCmp = StringCompare($sStr1, $sStr2)
      EndIf
   Next

 

Link to comment
Share on other sites

You can use my signature...the xpath would look like:

 

$xpath = "//p[@class='welcome-msg' and contains(.,'andres lopez')]"

 

The function will do the rest, and return an array of all matching data.

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
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...