DataTable Syntax

Applies to:

QC 10

Issue:

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?

Steps:

The correct syntax for using the DataTable is:

Browser("ABN-NHP-APP-T15 - QNXT").Window("Select a Pay-To Affiliation_2").Page("Select a Pay-To Affiliation").Frame("Frame").WbfGrid("dgClmNetwork_DT").WebRadioGroup("htmlid:=rdbSelect","value:=" & AffiliationID).select "#0"

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk