cancel
Showing results for 
Search instead for 
Did you mean: 

Taking a specified colomn variable name on a list

Highlighted
New Contributor

Taking a specified colomn variable name on a list

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?

 

var.SelectRow(3);

 

Thank you.

5 REPLIES 5
Highlighted
Community Hero

Re: Taking a specified colomn variable name on a list

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.

Highlighted
Community Hero

Re: Taking a specified colomn variable name on a list

Hi,

 

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.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
New Contributor

Re: Taking a specified colomn variable name on a list

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.

Thank you.

Highlighted
New Contributor

Re: Taking a specified colomn variable name on a list

Hi,

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:

Aliases.EsyaDepoGoruntuleyici.DepoEkranClass.centralWidget.Splitter.EDepoItemFrame.Frame.EDepoKokSertifikaView.qt_scrollarea_viewport.FullName

Highlighted
Community Hero

Re: Taking a specified colomn variable name on a list

Hi,

 

Aliases.EsyaDepoGoruntuleyici.DepoEkranClass.centralWidget.Splitter.EDepoItemFrame.Frame.EDepoKokSertifikaView.qt_scrollarea_viewport

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.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors