Problem : We are automating the SWT application. All the components are recognizing. Only menus are not recognized.

Temporary Solution: By coincidence, we found one solution. If we change the appearance of the system (from windows ->properties -> Appearance -> Change the style ), the menu items gets recognized. It works for only one run. For subsequence runs, we face the same problem of object not recognizing.

Is there any other solution available to recognize the menus during all runs.?