Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue for capturing dropdown list value
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Through QTP, How can capture dropdown list value in PORTAL
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Please use getRoProperty on the dropdown object
ex:
Code:
val=Browser(..).Page(...).WebList(...).getRoProperty(<property that holds your value>)

or if you are referring to selecting a particular value in the drop down use select method

Code:
Browser(..).Page(...).WebList(...).Select "yourvalue"
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Code:
'To Get Only One Value In WebList We Can Use "GetItem"
Browser(..).Page(...).WebList(...).GetItem(1)

'To Get All Values
'To Print  WebList Elements
set B_P_Obj= Browser(" ").Page(" ").WebList(" ")
rc=B_P_Obj.GetROProperty("items count")
For i=1 to rc
    it=B_P_Obj.GetItem(i)
    print(it)

Next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 3,496 05-01-2018, 06:46 PM
Last Post: zunebuggy
  Capturing a value in a webtable EK21 4 4,433 08-21-2015, 01:08 AM
Last Post: EK21
  Need help in capturing the Calculator result using QTP 11 vishruth143 0 2,127 01-20-2015, 11:08 AM
Last Post: vishruth143
  Not able to click text inside the grid dropdown szkapoo 6 4,728 12-20-2014, 09:43 PM
Last Post: supputuri
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,311 05-31-2014, 12:00 PM
Last Post: excellentpawan123

Forum Jump:


Users browsing this thread: 1 Guest(s)