ContributionsMost RecentMost LikesSolutionsRe: Python scripting - way to Initialize IDispatchwrapper shell object I don't know how to or want to explaining further. I think my question is clear, the usage is irrelevant. How can I initialize the IDispatchwrapper without searching for an object. Sorry for my short reply, but sometimes the user want's to try things for them self. Re: Python scripting - way to Initialize IDispatchwrapper shell object Have you worked with flex? I am building library functions for each flex object, which in term is called by other scripts. I need a way to pass a consistent object. To make matter worse, these objects are dynamic and reused. Re: Python scripting - way to Initialize IDispatchwrapper shell object I want to initialize IDispatchWrapper class at the start of a library function, before running any find command. If the call returns before the find creates the objects, I can rely on object.Exists property. Otherwise, I need to do sothing like this: var = call the function if hasattr(var,'Exists'): if var.Exists == Flase: exit() else: if var == False: exit() Python scripting - way to Initialize IDispatchwrapper shell object Is there a way to initialize a shell IDispatchwrapper object inside a python script? Can I extend the class (no real need)? . Code snippet: def func(string): shell_idispatcherwapper = <class> If not isinstance(string, str): return shell_idispatcherwapper getAllChildren = Aliases.browser.page.tree.FindAllChildren('ObjectType','ListItem',2,True) <more code> shell_idispatcherwapper= getAllChildren return shell_idispatcherwapper def callFunction() obj = function(someObject) if not obj.Exists: Log.Error("We failed") SolvedRe: Can I test a web page using testcomplete and Docker I've been thinking about the same thing for our CI pipeline. I don't think dockerized windows base containers support RDT connection; no presentation layer components available. I was thinking about TestExecute instead. Do folks know the underlying runtime platforms requirements for TestExcute? Can TestExecute support headless browser? Lots to learn and not enought time, Fred Re: Script works, setting breakpoint complains about unable to find the object Just have to use the old style of debugging -- print statements. :( Script works, setting breakpoint complains about unable to find the object When I execute the script without a breakpoint, the script completes successfully. However, if I set a breakpoint after the flex/flash log in screen, click on locals in debug to view the variables, nothing happens and after a while I get 'Unable to find the object that match the "userLoginPanel" item' popup wizard. When I click on the popup cancel or retry buttons, TC is unresponsive for a long time and I have to kill it. If I don't click on locals to view the variables, I can step through the code. TC version 12.10.602 running in windows 10 hyper-v. I'm using firefox version 60.1 with flash 29. I have verified that righ click>Show in Object Browser from Aliases tree works. Thanks for the support, Fred SolvedRe: Object browser not available in the given context Problem was due to parent node was not mapping reliably. Thanks for the help. Re: Object browser not available in the given context In debug mode, placed a break point at the btnLogIn.click, step to execute the click, and kill the script. Checking the object browser tree, I see wait or delay produces the message '...unavailabe. I changed the code to use a long sleep instead of waiting for the object and the script click worked. What is going on? Object browser not available in the given context Hi, After killing TC, my script now fails in a step that previously worked. The capture window at this point shows my object active on the screen. Thanks Fred Here is the code: Function AlarmsFilterPopUpDialogs() 'Open the browser Browsers.Item(ProjectSuite.Variables.Browser).Run(ProjectSuite.Variables.SitePortalUrl) Sys.Browser().BrowserWindow(0).Maximize 'Get the containers for the page Set objMainHTML = Aliases.browser.pageSitePortal.objectMain Set objMainFlex = objMainHTML.mainFlex 'Log into the system Set objUserLoginPanel = objMainFlex.userLoginPanel Set btnLogIn = objUserLoginPanel.WaitAliasChild("linkbuttonLogIn", 10000) objUserLoginPanel.textboxUsername.click objUserLoginPanel.textboxUsername.Keys(ProjectSuite.Variables.UserName) objUserLoginPanel.textboxPassword.click objUserLoginPanel.textboxPassword.Keys(ProjectSuite.Variables.Password) btnLogIn.Click 'At this point, the object browser show "Object browser not available in this context" 'Handle the welcome panel Set objDialog = objMainHTML.WaitChild("bulletindialogBulletin", 60000) 'Set btnClose = objMainHTML.bulletindialogBulletin.WaitChild("linkbuttonCancel", 30000) 'btnClose.Click objDialog.linkbuttonCancel.click 'Click the Home button set btnHome = objMainFlex.WaitAliasChild("linkbuttonHome",60000) objMainHTML.listbuttonAlarms.Click 'Bring up the alarms canvas set btnHome = objMainFlex.canvasHome.canvasInfo.WaitAliasChild("buttonAlarmFilterList", 60000) btnHome.Click 'Wait for the alarm panel to display set objAlarmTable = objMainFlex.canvasHome.canvasInfo.WaitAliasChild("panelAlarm",60000) objMainFlex.canvasHome.canvasInfo.buttonAlarmscanvas.ClickButton End Function Solved