Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Capturing the text of the selected WinRadioButton in QTP10.0 on Win7
#4
Solved: 12 Years, 10 Months, 3 Weeks ago
Hi Joe,

This should work:
Code:
arrRadio=Array("Business","Economy","First")

for Count=0 to Ubound(arrRadio)
bState=Window("Flight Reservation").WinRadioButton(arrRadio(Count)).GetROProperty("checked")
If Instr(bState,"ON")>0 Then
strButtonName=Window("Flight Reservation").WinRadioButton(arrRadio(Count)).GetROProperty("text")
objWorkbook.Sheets("Sheet1").Cells(i,11).Value=strButtonName
Exit For
End If
Next

Thanks,
Prasad
Reply


Messages In This Thread
RE: Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 - by BVVPrasad - 12-28-2010, 04:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  DataGrid: double click on selected row robertosalemi 0 4,825 05-12-2016, 03:00 PM
Last Post: robertosalemi
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 5,780 09-13-2015, 12:06 AM
Last Post: ADITI1992
  Capturing a value in a webtable EK21 4 5,032 08-21-2015, 01:08 AM
Last Post: EK21
  Need help in capturing the Calculator result using QTP 11 vishruth143 0 2,374 01-20-2015, 11:08 AM
Last Post: vishruth143
  QTP 11 and IE9 64bit on Win7&SP1 64bit, QTP does not recognize objects in website jpalos 4 9,288 08-27-2014, 10:11 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)