3 posts in this topic
Does anyone have any idea why Test() returns 0, while Test2() returns 1?
#include <IE.au3> MsgBox(0, "", Test() & " " & Test2()) Func Test() Local $oHTML = ObjCreate("HTMLFILE") $oHTML.body.innerHTML = FileRead("Test.html") Return IsObj($oHTML.getElementsByClassName("example")) EndFunc Func Test2() Local $oIE = _IEAttach("", "instance", 1) Return IsObj($oIE.document.getElementsByClassName("example")) EndFunc Sample Test.html I open in IE before testing:
<!DOCTYPE html> <html> <body> <p class="example"></p> <div class="example"></div> </body> </html> I'm receiving html text in a response to http request, I need to parse it fast and easy, getElementsByClassName would have been ideal. I'm using 188.8.131.52 version.
With _WinWaitActivate we can wait for a window to process it.
But is there any logic so that we can wait for this window title and based on the window text (like 2 or more patterns will be there) we can click yes or no on the window.
If Not WinActive($title,$text) Then WinActivate($title,$text)
how could I calculate the time difference using auto IT function ?
If I create a service to run a program , Application window cannot Appear - How can I make the App window visible
<html> <head> ... </head> <body> ... </body> </html> What should I do?