Well closing the browsers and opening a new one is good idea because when the playback is looking for objects it will not have to search in the old browsers.
Another way to get the ProcessTestObject could be:
public void testMain(Object[] args)
{
ProcessTestObject pto = startBrowser("http://www.myurl.com");
System.out.println("PTO "+ pto.getProcessId());
TestObject[] browsers = find(atChild(".class", "Html.HtmlBrowser" ));
for(TestObject browser:browsers)
{
if(pto.getProcessId() == browser.getProcess().getProcessId())
{
//we hv a match, use it
((BrowserTestObject)browser).maximize();
}
}
unregisterAll();
}
//Note- for IE8 and above you will need to set a flag in ivory.properties file to true rational.test.ft.enablelcieprocessing=true