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
#2
Not Solved
Hi,
When you select the value from the list ..
add wait..
Check java table values are populated.
(You can add wait using ...waitproperty )

Then proceed..
Please let me know if this helps
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)