I have a working script which is running successfully on one of the Recorder Machine.whereas If I use the same script again on different Machine recorder it is giving above message. " TP Msg : The window does not have a menu"
I tried to execute only the Problematic click action on different new page It is able to execute successfully. I am unable to determine the Problem to cause this issue.
I tried below two options ,but it gave me the same message.
Window("Application=javaw.exe Caption='My Teamcenter - Teamcenter 11'").Attach TreeView("Index=2").Click 144, 8, tpMouseRight
GUIObject("ClassName=SWT_Window0 Caption='' Index=71").Click 144, 8, tpMouseRight
Can some please help me here
Answer by Yuriy L. ·
You are using Eclipse SWT -- a GUI technology not supported by the Recorder, so getting inconsistent results across different agents when you rely on Recorders capabilities to recognize a low-level controls, can, of course happen.
I can give you some general recommendations in relation to your problem. It would be great, of course, if someone else who has experience in working with SWT would be able to give you more specific recommendations.
1. Make sure all agents where you run your application have the same screen resolution and color depth.
2. Always maximize your frame windows before using them.
3. Reference only frame windows, never reference inner controls, like GUIObject("ClassName=SWT_Window0 Caption='' Index=71") in the snippet you've provided.
4. For all actions, including right clicks and and menu selection, use image recognition and/or OCR.
Please let me know if you have any questions regarding these recommendations.
Using an URL in Enterprise scripting 1 Answer