Attempting to access the MozillaBrowserBot object in Mozilla JS has been unsuccessful for me. The code I utilized is shown below:
function externalApplication(){
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
alert("wm: "+wm);
var contentWindow=wm.getMostRecentWindow('navigator:browser').getBrowser().contentWindow;
alert("contentWindow: "+contentWindow);
//The pageBot object is not being retrieved
var pagebot=new MozillaBrowserBot(contentWindow);
alert(pagebot);
}
I am interested in adding the find option to the xpath checker. If the MozillaBrowserBot is associated with Selenium IDE, is there a way to obtain the pagebot object?