webCheckText usage

webCheckText usage

Hi, I downloaded AppManager 9.2 to check it out before upgrading our current version which is already doing a really good job.

I want to use Real Browser Monitor with the webCheckText to try and identify the cause of an intermittent bug.

I managed to get a Real Browser Monitor working after some fiddling around and now it logs on to my EnterpriseOne application, launches a new screen, does a find then logs off.

I want to use the webCheckText function to check for some text on the pages as it goes through.

I added the statement 

webCheckText("XXXXXXXXXXXXXXXXXX")

It didn't seem to do anything no matter where I put this line in the script.

I found two web pages talking about the usage but neither had any additional detail



What is the trick to get this cool feature working?

thanks, Lerwick







Here's the while script

# Recorded on Mon Aug 09 18:17:51 EST 2010
useLocalMapFile()
launchApplication("about:blank")
changeURL("http://nufarme1:9181/jde/E1Menu.maf",6)
# URL : "http://nufarme1:9181/jde/E1Menu.maf"
#setLastWindow()
setWindowNM("JD","JD","NONE",0,4,"sw,sw,eq")
fireEventOnElement("INPUT","id","User",1,"settext","appmanager","false")
fireEventOnElement("INPUT","id","Password",1,"settext","password01","false")
fireEventOnElement("A","innertext","Details",1,"keypress","VK_TAB","false")
fireEventOnElement("INPUT","value","Sign In",1,"keypress","VK_RETURN","false")
# URL : "http://nufarme1:9181/jde/E1Menu.maf?jdeowpBackButtonProtect=PROTECTED"
# setLastWindow()
# setWindowNM("JD","JD","E1MENUMAIN_379416462291342336",0,10,"sw,sw,eq")
fireEventOnElement("INPUT","id","TE_FAST_PATH_BOX",1,"settext","P4021|NUF000004","false")
fireEventOnElement("INPUT","id","TE_FAST_PATH_BOX",1,"keypress","VK_RETURN","false")
# URL : "http://nufarme1:9181/jde/RunApp.mafService?e1.mode=view&e1.state=maximized&RENDER_MAFLET=E1Menu&e1.service=RunApp&e1.namespace="
#setLastWindow()
setWindowNM("Work","Work","e1menuAppIframe",0,6,"sw,sw,eq")
fireEventOnElement("INPUT","id","C0_53",1,"settext","0545-20L","false")
webCheckText("XXXXXXXXXXXXXXXXXX")
# URL : "http://nufarme1:9181/jde/RunApp.mafService?e1.mode=view&e1.state=maximized&RENDER_MAFLET=E1Menu&e1.service=RunApp&e1.namespace="
#setLastWindow()
setWindowNM("Work","Work","e1menuAppIframe",0,1,"sw,sw,eq")
fireEventOnElement("INPUT","id","C0_60",1,"settext","*","false")
# URL : "http://nufarme1:9181/jde/RunApp.mafService?e1.mode=view&e1.state=maximized&RENDER_MAFLET=E1Menu&e1.service=RunApp&e1.namespace="
#setLastWindow()
setWindowNM("Work","Work","e1menuAppIframe",0,1,"sw,sw,eq")
fireEventOnElement("INPUT","id","C0_56",1,"settext"," ","false")
fireEventOnElement("INPUT","id","C0_58",1,"settext","        3001","false")
# URL : "http://nufarme1:9181/jde/RunApp.mafService?e1.mode=view&e1.state=maximized&RENDER_MAFLET=E1Menu&e1.service=RunApp&e1.namespace="
#setLastWindow()
setWindowNM("Work","Work","e1menuAppIframe",0,5,"sw,sw,eq")
fireEventOnElement("IMG","id","hc_Find",1,"click","NONE","false")
# URL : "http://nufarme1:9181/jde/RunApp.mafService?e1.mode=view&e1.state=maximized&RENDER_MAFLET=E1Menu&e1.service=RunApp&e1.namespace="
#setLastWindow()
setWindowNM("Work","Work","e1menuAppIframe",0,8,"sw,sw,eq")
fireEventOnElement("IMG","id","hc_Cancel",1,"click","NONE","false")
# URL : "http://nufarme1:9181/jde/E1Menu.maf?jdeowpBackButtonProtect=PROTECTED"
#setLastWindow()
# LH2 setWindowNM("JD","JD","E1MENUMAIN_379416462291342336",0,3,"sw,sw,eq")
# LH2 fireEventOnElement("INPUT","id","TE_FAST_PATH_BOX",1,"settext","P4021|NUF000004","false")
# LH2 fireEventOnElement("INPUT","value","Open New Window",1,"keypress","VK_TAB","false")
# LH2 fireEventOnElement("A","innertext","NONE",7,"keypress","VK_TAB","false")
# LH2 fireEventOnElement("A","id","expandMenuLink",1,"keypress","VK_TAB","false")
# LH2 fireEventOnElement("A","innertext","NONE",4,"keypress","VK_TAB","false")
# LH2 fireEventOnElement("A","innertext","NONE",3,"keypress","VK_TAB","false")
# LH2 fireEventOnElement("A","innertext","Sign Out",1,"keypress","VK_RETURN","false")
# LH2 closeWindowNM("Browser Close Detection","Browser Close Detection","NONE",0,1)
# Recorded on Mon Aug 09 18:19:10 EST 2010
# LH2 launchApplication("http://nufarme1:9181/jde/E1Menu.maf?jdeLoginAction=LOGOUT&RENDER_MAFLET=E1Menu")
# URL : "http://aud4tlyt1s:9090/jsp/RBMScriptManager.jsp?from=urlseqdetails&tab=webscripttab&bcname=PY_SD"
#setLastWindow()
# LH setWindowNM("Applications","Applications","Application_ManagerRBM_Script_Manager",0,865,"sw,sw,eq")
# LH2 closeWindowNM("Applications Manager : Real Browser Monitor","Applications Manager : Real Browser Monitor","Applications Manager : Real Browser Monitor",0,25)
# URL : "http://aud4tlyt1s:9090/jsp/RBMScriptManager.jsp?from=urlseqdetails&tab=webscripttab&bcname=PY_SD"
#setLastWindow()
# LH setWindowNM("Applications","Applications","Application_ManagerRBM_Script_Manager",0,90,"sw,sw,eq")
# LH closeWindowNM("Applications Manager : Real Browser Monitor","Applications Manager : Real Browser Monitor","Applications Manager : Real Browser Monitor",0,12)
# URL : "http://aud4tlyt1s:9090/jsp/RBMScriptManager.jsp?from=urlseqdetails&tab=webscripttab&bcname=PY_SD"
# setLastWindow()
# LH2 setWindowNM("Applications","Applications","Application_ManagerRBM_Script_Manager",0,236,"sw,sw,eq")
# LH2 fireEventOnElement("A","innertext","New",1,"click","NONE","false")
# LH2 fireEventOnElement("INPUT","id","User",1,"settext","_QE_BLANK","false")
# LH2 closeWindowNM("JD Edwards EnterpriseOne","JD Edwards EnterpriseOne","JD Edwards EnterpriseOne",0,1)
# Recorded on Mon Aug 09 18:41:13 EST 2010
# useLocalMapFile()
# changeURL("http://nufarme1:9181/jde/E1Menu.maf",4)
# URL : "http://nufarme1:9181/jde/E1Menu.maf"
#setLastWindow()
# setWindowNM("JD","JD","NONE",0,4,"sw,sw,eq")
# LH3 fireEventOnElement("INPUT","id","User",1,"settext","ausappmgr","false")
# LH3 fireEventOnElement("INPUT","id","Password",1,"settext","H1ghLand5","false")
# LH3 fireEventOnElement("INPUT","id","Password",1,"keypress","VK_RETURN","false")
# URL : "http://nufarme1:9181/jde/E1Menu.maf?jdeowpBackButtonProtect=PROTECTED"
# setLastWindow()
# setWindowNM("JD","JD","E1MENUMAIN_934910688774972416",0,5,"sw,sw,eq")
launchApplication("http://nufarme1:9181/jde/BHConnectionControler.mafService?",4)
launchApplication("http://nufarme1:9181/jde/BHConnectionControler.mafService?",6)
fireEventOnElement("A","innertext","Sign Out",1,"click","NONE","false")
closeWindowNM("Browser Close Detection","Browser Close Detection","NONE",0,1)

                New to ADSelfService Plus?