Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to handle WinListView object with multi line items?
#1
Not Solved
I am writing a script for an application written in C++. I have a WinListView object with 18 columns that I need to be able to select an item by double clicking. Object Spy displays <muli-line value> for all items and selection. I recorded the action to see how QTP would recognize it and this is what I got:

Code:
Window("Workforce Management").Window("R&D").WinListView("Jobs").Select "H: 303-555-1212" + vbLf + "B: 303-555-1212"

Window("Workforce Management").Window("R&D").WinListView("Jobs").SetItemState "H: 303-555-1212

Window("(10000103399710680001)]").WinButton("OK").Click
Window("Workforce Management").Activate
B: 303-555-1212", micDblClick


It wont play back due the unterminated string for the SetItemState method. If you look at the last line above, the micDblClick should be on the same line as the SetItemState. When I try to manually script the line it doesnt recognize it:

Code:
Window("Workforce Management").Window("R&D").WinListView("Jobs").SetItemState "H: 303-555-1212" + vbLf + "B: 303-555-1212", micDblClick
Reply


Messages In This Thread
How to handle WinListView object with multi line items? - by jim7020 - 06-10-2008, 01:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can UFT Handle Detecting Redirects? zunebuggy 0 1,214 05-28-2020, 06:50 PM
Last Post: zunebuggy
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 3,026 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  Fifth word from every thousand line in notepad files. sallu.iet@gmail.com 0 3,379 01-17-2020, 09:58 AM
Last Post: sallu.iet@gmail.com
  Grab multiple line data from log file haziqwebs 0 2,098 10-19-2016, 01:28 PM
Last Post: haziqwebs
  [UFT] [WPF] DataGrid: get items of ControlTemplate robertosalemi 0 3,845 07-14-2016, 07:52 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)