Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue for capturing dropdown list value
#1
Solved: 10 Years, 9 Months, 1 Week ago
Through QTP, How can capture dropdown list value in PORTAL
Reply
#2
Solved: 10 Years, 9 Months, 1 Week 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: 10 Years, 9 Months, 1 Week 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 2,851 05-01-2018, 06:46 PM
Last Post: zunebuggy
  Capturing a value in a webtable EK21 4 4,179 08-21-2015, 01:08 AM
Last Post: EK21
  Need help in capturing the Calculator result using QTP 11 vishruth143 0 2,014 01-20-2015, 11:08 AM
Last Post: vishruth143
  Not able to click text inside the grid dropdown szkapoo 6 4,293 12-20-2014, 09:43 PM
Last Post: supputuri
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,053 05-31-2014, 12:00 PM
Last Post: excellentpawan123

Forum Jump:


Users browsing this thread: 2 Guest(s)