cancel
Showing results for 
Search instead for 
Did you mean: 

Find a Text in List view

SOLVED
Highlighted
Regular Contributor

Find a Text in List view

Find a Text in List view. The problem is wItem and wSelectedItem containing no value but there are 19 entries in wItemCount.
When i use Obj.TouchItem(2) , then it is clicking on item 2 in list view, but i need to pass "Text" in place of integer value.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Regular Contributor

Hi Marsha_R,
Yes .. Problem will be resolved by your suggestion, but i think it will be too lengthy if there are 19 entries.
Any way problem has been resolved by using GetItemAtPosition.Code in place of wItem.
It showing all the element containing by the list.

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Hi,

 

Using the Object Browser and / or Object Spy, try to find an object that contains list elements and find a way to select required element from the found object.

Otherwise, talk to developers and ask them for their recommendation.

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

If it's a fixed list, you can always build your own text->number translation

 

if text = "A" then click 1

else 

if text = "B" then click 2

 

 

etc

Highlighted
Regular Contributor

Hi Marsha_R,
Yes .. Problem will be resolved by your suggestion, but i think it will be too lengthy if there are 19 entries.
Any way problem has been resolved by using GetItemAtPosition.Code in place of wItem.
It showing all the element containing by the list.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors