Forum Discussion

ARANA's avatar
ARANA
Occasional Contributor
3 years ago
Solved

Can't click on another tab without coordinates defined

Hi all,
I'm new to TestComplete and learning the tool myself. I am automating Desktop application. To start with, my approach is to create Keyword Tests for the scenario and then convert it into script which normally contains coordinates for 'Click' actions. I don't want the dependency on the coordinates in my scripts, so sometimes when I remove them from the scripts, the automated scripts fails ( not always).

For eg in below screen, in my keyword tests I'm clicking on 'Ledger Codes' which has coordinates (661,30) but when I remove them the script fails. I've tried using object spy to spy on the Ledger Codes tab but the Testcomplete can't spy on that particular ' Ledger Codes' tab. I've attached name mapping as well for reference. Is there any way I can click on Ledger tab without depending on coordinates please?