Forum Discussion
12 Replies
- scot1967
Champion Level 1
I will toss this one in for thought. If you can you find the object in the DOM with the dev tools like F12 in Chrome maybe you can manually map the object with xpath expressions.
https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/finding-objects/xpath-expressions.html?sbsearch=xpath - Hassan_Ballan
Champion Level 2
When using Object Spy to "Pick the object with the target glyph" or "Point to the object and fix", are you pausing and waiting long enough?
- Drag the target glyph () to the desired object or Click the button and then move the mouse pointer to the desired object.
- Wait until a red frame appears around the object.
- Release the mouse button or press the Select object shortcut, SHIFT+CTRL+A.
Sometimes TestComplete is busy analyzing or CPU is busy and TestComple becomes slow to respond.
💬 If a response helped you out, don’t forget to Like it! And if it answered your question, mark it as the solution so others can benefit too.
- ChintanOccasional Contributor
Hassan_Ballan​ Yes i waited enough to get red frame on the desired object but frame comes to taskbar and desktop but not in browser inner page.
- rraghvani
Champion Level 3
If you're testing a browser, such as Edge or Chrome, then ensure you have the appropriate SmartBear Test Extension installed and that you have the Extension Enabled. Also, ensure your scaling is set to 100% too.
- scot1967
Champion Level 1
If this works you could create a function that would read from a JSON object you would update with the needed xpath expressions of several objects and just call the one you need to return the needed xpath expression and pass it to a findelement or xpath method to return an object to your script tests. Crude but maybe workable?