Ask a Question

clicking on subitem of sysListView control

swati_nadage
Contributor

clicking on subitem of sysListView control

In our desktop application there is a sysListView control. In that control there are checkboxes. I want to click on checkbox.

How to do this.

I tried clickItem, CheckItem methods. But not able to click on subitem. Please refer to attached image.

Could you please guide me in this?

6 REPLIES 6
Mrunal
Contributor

Can you please provide screenshot of object properties and methods with the help of object spy? Name and Mappedname will help.

----
Mrunal

Hi Mrunal,

 

Please find attached screenshot of object properties.

 

Thanks and Regards,

Swati

Hi Swati,

 

Please attach object properties screenshot also.

----
Mrunal

attaching object properties screenshot

Hi Swati,

 

Try with using

WItem.Click()

refer this link :- https://support.smartbear.com/viewarticle/68276/

 

----
Mrunal

Thanks Mrunal for your help.

Actually I have tried using wItem but it gives error as object required.

Also I tried using wchecked but TestComplete doesn't returns state of the checkbox. It gives error as 'the list view items has no checkboxes'.

 

I tried like this.

log.message Aliases.SisXV.dlgManageLayouts.SysListView32_ManageLayouts.wChecked(1)

or

Call Aliases.SisXV.dlgManageLayouts.SysListView32_ManageLayouts.wItem(1, 1).Click

If you have any example please share with me. I have gone through Smart Bear documentation on this but not getting how to use wItem for my object.

 

Thanks and Regards,

Swati

cancel
Showing results for 
Search instead for 
Did you mean: