Hi Alberto,
I have yet to test the function myself successfully, but you can write something like
' Required for NimBUS system calls (like sending QoS)
include "Nimbus-functions.src"
#ActionTimeout = 60
#ignoreerrors=1
StartBrowser("FF", "https://lipsum.com/", 3)
pause 2 sec
text$="is simply dummy text"
rc = nimWaitForWindowText("FIREFOX.EXE|MozillaWindowClass|Lorem Ipsum - All the facts - Lipsum generator",text$,20)
'rc = nimWaitForWindow("FIREFOX.EXE|MozillaWindowClass|Lorem Ipsum - All the facts - Lipsum generator",20)
'convert the number to a string to append to message
err$=str$(rc)
if rc > 0 then
msg$ = "Success with nimWaitForWindowText: "+err$
'MsgBox(msg$)
nimAlarm(2,msg$,"e2e-Support.ca.com","E2E-appmon")
else
msg$ = "Failure with nimWaitForWindowText: "+err$
nimAlarm(2,msg$,"e2e-Support.ca.com","E2E-appmon")
'MsgBox(msg$)
endif
Pause 2 secs
CloseBrowser()
Oddly though I have not been having luck in getting it to successfully match. I can successfully match the
window using the nimWaitForWindow call though. Perhaps you might have better luck.
Greg