Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue related to dropdown selection(Please help urgent)
#1
Not Solved
Hi
I am facing a problem i.e. i am unable to select item in dropdown box. Earliar it was working fine but due to some refactoring, static text control is used. As i run script it gives message as "Object disabled"


Code:
count1 = Dialog("text:=XYZ").WinComboBox("attached text:=Primary Property","nativeclass:=ComboBox").GetROProperty("Items count")

print count1

For i =0 to count1-2
Dialog("text:=XYZ").static("nativeclass:=Static","window id:=2212").WinComboBox("attached text:=Primary Property","nativeclass:=ComboBox").Select i

Next


I wonder that it is giving correct count but on selection it fails. Please help........

image of object spy is attached

Thanks in advance


Attached Files Image(s)
   
Reply
#2
Not Solved
Hi,

Please try this, getting the Ubound of items count and then selecting it.

https://www.learnqtp.com/forums/Thread-S...-using-QTP
Reply
#3
Not Solved
Hi basanth i think both are same codes. Problem is that qtp does not identify object
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 3,400 05-01-2018, 06:46 PM
Last Post: zunebuggy
  QTP system related issue Bharathi Kanagarajan 1 2,090 09-12-2015, 11:28 PM
Last Post: ADITI1992
  Weblist selection diya 11 21,352 06-16-2015, 08:27 PM
Last Post: rajpradeep32
  Not able to click text inside the grid dropdown szkapoo 6 4,631 12-20-2014, 09:43 PM
Last Post: supputuri
Exclamation URGENT: ActiveX component can't create object citibank_ani 3 15,542 09-09-2014, 01:02 PM
Last Post: VarunKaushik

Forum Jump:


Users browsing this thread: 1 Guest(s)