The following code is offered as a sample with no guarantees.
Assistance with custom e2e_appmon scripts is a paid Services engagement and not supported by Broadcom Support.
StartBrowser("CH", "https://login.salesforce.com/", 3)
UsePage("Login | Salesforce")
WriteHTML("INPUT EMAIL[NAME='username']", "
[email protected]")
WriteHTML("INPUT PASSWORD[NAME='pw']", "password hidden")
ClickHTMLElement("INPUT SUBMIT[VALUE='Log In']")
#BitmapPrecision=85
Pause until
Bitmap("C:\Program Files (x86)\Nimsoft\e2e_scripting\scripts\legend.bmp")
InWindow("CHROME.EXE|Chrome_WidgetWin_1|Home | Salesforce - Google Chrome",1) PauseFalse
MsgBox("'Wait for' at line " + #ErrorLine$ + " has failed !")
End
EndPause
The "legend.bmp" is a snippet of the legend image.