Hello,
I am currently hitting an issue like the one above however I have tried multiple ways of doing it, however every time I do it, the code fails for me.
Instead of opening a new instance of IE and reading the HTML source, I attach to an already open page and read the HTML from there.
Once I have the HTML source, then I try read the ID's on the page into an Array, but for some reason, every time I try an example it gives me "0" or "not found" each time.
Does any of you know what I am doing wrong?
#include "Forms\Welcome.isf"
#include "Forms\Main.isf"
#include "Functions.au3"
#include "IE.au3"
#include "String.au3"
#include "Array.au3"
#include "MsgBoxConstants.au3"
Local $oIE = _IEAttach("Logged in")
$sHTML=_IEBodyReadHTML($oIE)
$PID = _StringBetween($sHTML, ',"PID":', ',"address":"')
If IsArray($PID) Then
$PID = $PID[0]
Else
$PID='not found'
EndIf
ConsoleWrite($sHTML)
ConsoleWrite($PID)
Also, please note that the HTML source code is registered correctly as I can see in the console, hence the reason of writing it in the console to check.
Thanks,
Sep