Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Dropdownlist
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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"


Attached Files Image(s)
   
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)