Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to use a DataTable parameter in a WebRadioGroup

Status
Not open for further replies.

kdjonesmtb2

Technical User
Joined
Nov 19, 2012
Messages
93
Location
US
Attempting to replace hardcoded value in WebRadioGroup statement with DataTable parameter from Global DataTable in QTP v10

Hardcoded line works - DataTable parameter version compiles without error but errors out

Object doesn't support this property or method: 'WebRadioGroup'
Line (101): "Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect",DataTable.Value("Provider_ID","Global")).select "#0"". Failed 3/7/2013 - 18:50:41

Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect",DataTable.Value("Provider_ID","Global")).select "#0" ' This code fails



'Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect","value:=PRV00010316").select "#0" ' This code works


Do I need to use a Trim statement on the DataTable? Should the DataTable value be formated as "Text" ?

Is there another way to utilize the DataTable value with the WebRadioGroup?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top