kdjonesmtb2
Technical User
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?
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?