I have a list on a page. I want to check 2nd colomn name whether it is desired name. In other word, i want to take this name for comparion if it is the name which is searching for. For that which methods do i need to use?
If you look screensoot, i selected colomn three with below code. Then how can i take 2nd colomn name?
Use object spy on the column name that you want to compare. You should be able to see in there what the index and object name are that TestComplete is using to reference that object and you can use that in your test.
I assume that you are working with desktop application.
What technology is it developed with? (.Net, C++, Java, ...)
Ask developers what control is used for this part of UI and check corresponding help section (https://support.smartbear.com/testcomplete/docs/app-testing/desktop/index.html) if this control is supported and if any hints are provided.
And yes, Object Browser/Object Spy is your primary tool in this case as Marsha suggested.
Thank you Alex for your quick reply.
Yes it is an desktop(QT5,C++) application. We write tests using java script on TestComplete.
As i stated i can click one line from the list (as you can see on the screenshoot (using selectRow(3) method)) but cannot take the name of the any colomn value on this line.
Object spy takes the entire field which includes all the lines. It does not take one by one each lines.
Selected object is like below:
What is the type of control? Is it in the https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/qt.html list?
Have you read for details the whole https://support.smartbear.com/testcomplete/docs/app-testing/desktop/qt/index.html help section?
You might need to talk to your developers and ask their advice if some native methods can be used to get what you need (https://support.smartbear.com/testcomplete/docs/app-testing/desktop/qt/accessing-native-members.html).
Also, the https://support.smartbear.com/testcomplete/docs/app-testing/desktop/qt/alien-widgets.html help topic might appear to be useful as well.