Micro Focus QTP (UFT) Forums
QTP Dropdownlist - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP Dropdownlist (/Thread-QTP-Dropdownlist)



QTP Dropdownlist - Sundar Thangavelu - 12-14-2012

Hi Need a help,

I am new to QTP, In a page record dropdownlist and select a value from that , but when i run again i got "Object Disabled error". Actually my object is in Obj Respository.

Attached he dropdown list image, Here is my code.
Code:
Browser("REM - Assignment of Lease").Page("REM - Assignment of Lease").WebEdit("ctl00$ctl00$MainContentDefault").Set "Conversion from sole-prop"



RE: QTP Dropdownlist - elango87 - 12-14-2012

If its a drop down, why are you using Webedit?

Use the code below,
Code:
Browser("REM - Assignment of Lease").Page("REM - Assignment of Lease").WebList("ctl00$ctl00$MainContentDefault").Select "Conversion from sole-prop"

If it doesn't work, use the code below,
Code:
Browser("REM - Assignment of Lease").Page("REM - Assignment of Lease").WebList("ctl00$ctl00$MainContentDefault").Click
Browser("REM - Assignment of Lease").Page("REM - Assignment of Lease").WebList("ctl00$ctl00$MainContentDefault").Select "Conversion from sole-prop"

Hope it helps.

Thanks,
Elango