Forum Discussion
Hi,
siv_arunprakash wrote:
When I inspected the Name mapping element in object browser in the Identification property I can see that VisibleOnScreen property is False. But actually the element is visible on the screen.
Can you provide a screenshot that illustrates your former statement and provide more details as for how you've figured ot the latter?
You did not provide your test code, thus I am guessing that you are using NameMapping (or, better, Aliases).
If my guess is correct, I would recommend to figure out if the problem is with the mapped onscreen object or with object itself (or TestComplete).
Try the following:
-- Start your tested application and navigate to the screen with the problematic onscreen object;
-- Try to locate the onscreen object using Object Spy;
-- If Object Spy is able to identify the object, command Object Spy to locate the selected onscreen object in the Object Browser via the Highlight in Object Tree context menu command;
-- Check in the Object Browser if the located onscreen object has any child or sibling object that can overlap it;
-- Execute the Highlight on Screen context menu command from the Object Browser to double-check that the selected object can be located in the application and highlighted;
-- With the required object selected in the Object Browser, call the Show Object in Name Mapping Editor context menu command and check that the correct element is activated in the NameMapping editor;
-- Verify that the mapping properties of the activated element match those of the object from the Object Browser;
-- Select the element in the Aliases tree and call the Find Mapped Object context menu command. Check that the correct element is selected in the NameMapping editor.
If all checks from above pass, copy full object's name from either Object Browser or Object Spy (i.e. Mobile.Device().<Application>.<Activity>.<control>), paste it to the new empty function and try to execute some action (.Keys(), .Click(), etc.) over this object.
Do the same but using aliased object name and compare the result.
If both attempts fail with the same error, I would recommend to contact Support via the https://support.smartbear.com/message/?prod=TestComplete form.
Hi Alex,
Thank you for your reply. I will try the following and if the issue is still not resolved , I will post the screenshot or video how I am capturing object and trying to perform action.
Related Content
- 11 years ago
- 8 years ago
- 2 years ago
Recent Discussions
- 4 hours ago