Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JavaList select?
#1
Not Solved
Hi guys, I'm trying to select an item from a JavaList using QTP 10. I am able to select an item from the JavaList using this code:

Code:
objWindow.JavaList(strIdentifier).Select selectedItem

The problem is, when you select a value from that JavaList object, it triggers an event wherein data is loaded into the JavaTable below it (eg: I select Beverage from the list, then a list of beverages will appear on the JavaTable). I don't have any problems doing this manually (everything goes as it should), but when I automate it, QTP is able to select the selected item from the list, but after data is loaded into the table (and I check/select values from that table), the item in the list goes back to its default value, resulting in an error message in the program (did not select an item).

Anyone got a remedy on how I can solve my problem?
Reply


Messages In This Thread
JavaList select? - by riechan - 07-27-2012, 06:55 AM
RE: JavaList select? - by Shridevi.Salagare - 08-03-2012, 12:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Shy Disabled items in a JavaList () AnkitaSinha 1 3,894 07-27-2011, 09:04 AM
Last Post: rajpes
  javalist karraaruna 3 4,468 11-23-2010, 07:50 PM
Last Post: karraaruna

Forum Jump:


Users browsing this thread: 1 Guest(s)