Jump to content

[Solved] Capture other lines of _IEGetObjById?


Recommended Posts

I am not sure on how to grab the innertext I want. Is there a way I can just grab the second line, or is there a better way to do it all together? 

#include <IE.au3>


$oIE = _IEAttach("Form Details")

$oDiv = _IEGetObjById($oIE, "Col3") ;Phone

MsgBox (0,"Oops",$oDiv.outertext)

When I use this code I get

Capture2.PNG

 

Capture.PNG

 

html.au3

Edited by SkysLastChance

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

Link to comment
Share on other sites

How about this? It will work if the line will always have "Submission" in it:

#include <IE.au3>


$oIE = _IEAttach("Form Details")

$oDiv = _IEGetObjById($oIE, "Col3") ;Phone
$oCol = _IETagNameGetCollection($oDiv, "dd")
Local $text
For $col in $oCol
    If(StringInStr($col.innerText, "Submission")) Then
        $text = $col.innerText
        ExitLoop
    EndIf
Next

MsgBox (0,"Oops",$text)

 

UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI=

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

×
×
  • Create New...