e2e_appmon probe problem with salesforce unable to locate image
search cancel

e2e_appmon probe problem with salesforce unable to locate image

book

Article ID: 130070

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

The e2e_appmon probe is unable to locate an image on a salesforce.com page. UIM 7.x e2e_appmon probe 2.50
Use Case:  Login to a login.salesforce.com and look for an image after login to determine if the page loaded successfully.

Environment

UIM any release
e2e_appmon 2.50 or later

Resolution

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.