Query on Testcomplete
Hi Members,
I have the below query related to My Application with testcomplete Tool:
Im working on a Desktop application where one of the screen is PB screen which hits chromium browser screen. with Testcomplete While Identifying one of the text in the screen with help of "Drag the traget to an object" option it shows me below object
"Aliases.Item.wndCornerstone.MDIClient.wndFNWND317041.VcEmbeddedFrame.VcEmbeddedPanel.BrowserPanel.Canvas.CefBrowserWindow.Chrome_WidgetWin_0.Chrome_RenderWidgetHostHWND."
and if im running the script, script is failing again if im trying to do Object property with "Drag the traget to an Object" option it is showing me with new VcEmbeddedFrame appenede with ID like below:
"Aliases.Item.wndCornerstone.MDIClient.wndFNWND317041.VcEmbeddedFrame2.VcEmbeddedPanel.BrowserPanel.Canvas.CefBrowserWindow.Chrome_WidgetWin_0.Chrome_RenderWidgetHostHWND"
Here VcEmbeddedFrame is a parent Java frame which Powwerbuilder embeds.
So continuous change of this VcEmbeddedFrame id my scripts are failing. could any one please help me on how to resolve this issue.
Thanks in Advance.
Hi,
You need to examine the VcEmbeddedFrame object in the Object Browser and figure out the unique and stable set of properties that identify this frame and do not change from run to run. Then you should to correct NameMapping for this element so that it uses identified properties and their respective values (maybe, wildcarded with * and ?).
Hi thoshima,
I've found a new (and great!) article on the TestComplete documentation. It will explain you why you have different names in Name Mapping and how to avoid this: