Forum Discussion
Hi rraghvani
To answer your questions:
1) Yes, after clicking on the ellipsis button ("..."), the menu popup appears correctly.
2) However, there is no specific name mapping created for the individual menu items, because TestComplete does not seem to detect or highlight them properly - it only detects the entire popup container.
3) For the click action, we are using the "Click" keyword (standard keyword test action). The step appears as passed (green), but nothing changes in the UI.
When inspecting through the Object Browser, the menu items are not recognized as separate clickable elements - only the general popup or browser window is shown.
Do you think this could be related to how the dropdown is implemented (maybe as a dynamic overlay or shadow DOM element)? And is there a recommended way to make TestComplete identify those inner elements?
To help troubleshoot the issue, you can use the "Point and Fix" feature in TestComplete's Object Spy. This works well for handling elements like disappearing dropdowns.
When using the Object Spy, does a red frame appear around the objects as expected? If so, the Point and Fix option can capture useful details for analysis.
Also, take a look at the TestComplete Run Log. It includes screenshots highlighting the UI object that the action interacted with and where the click occurred. Review this to confirm whether the object and click location match your expectations.
Additionally, you can manually navigate to the desired menu item in the browser, right-click on it, and choose Inspect. This will bring up the corresponding HTML element in the DOM, which can help you understand the parent-child relationship of the element.
From there, you can try crafting an XPath to identify the element. Test it in the browser console to ensure it returns a unique match. If it returns multiple results, check whether the first entry is actually the element you're targeting.
🤖 AI-assisted response
👍 Found it helpful? Click Like
✅ Issue resolved? Click Mark as Solution