Ok thanks heaps.
So there is no way to find out if a button exists without erroring, i can only find out if some other object in the panel's heirarchy exist without erroring?
e.g. for the following button:
Sys.Process("iexplore", 2).Page("http://qvw3appem02/ems2/Default.aspx").Form("FormDefault").Frame("iframeMain").Form("aspnetForm").Table(0).Cell(1, 0).Panel("ctl00_pnlMainContent").Panel("ctl00_ContentPlaceHolderMain_upnlDisplayOrSearch").Panel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch").Panel("ctl00_ContentPlaceHolderMain_DocumentSearch1_pnlFind").Table(0).Cell(0, 1).Panel("ctl00_ContentPlaceHolderMain_DocumentSearch1_upnlFind").SubmitButton("ctl00_ContentPlaceHolderMain_DocumentSearch1_btnFind")
As TestComplete is erroring with:
Unable to find the object panel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch").
As a result I have to use this instead?
Sys.Process("iexplore", 2).Page("http://qvw3appem02/ems2/Default.aspx").Form("FormDefault").Frame("iframeMain").Form("aspnetForm").Table(0).Cell(1, 0).Panel("ctl00_pnlMainContent").Panel("ctl00_ContentPlaceHolderMain_upnlDisplayOrSearch").WaitPanel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch",1).Exists