I have a table that is generated dynamically - the table contains a list of items with radio buttons so the user can select an item. I am able to write an xpath that reaches the header of the table but I can't seem to get to any of the data. The code that generates the table looks like this:
<form accept-charset='UNKNOWN' id='idForm3' method='POST' name='frmConfigSlot' enctype='application/x-www-form-urlencoded' onSubmit='return false;'><input name='aCurrentTransaction' type='HIDDEN' value='1'> <input id='idInput5' value='/maintenix:abcd40619fa890788d71b299fac3c609' name='aReturnToPage' type='hidden'> <input id='idInput6' value='1000301:131-9B' name='aAssembly' type='hidden'> <div id="idTreeContainer_idTableBomItems"></div> <script language = "Javascript" type = "text/javascript"> var idTableBomItems = new DynamicTreeTable( 'idTableBomItems','idTableBomItems',null,'bom_item','bom_item_key','sub_bom_count','com.mxi.mx.web.query.assembly.BomItemTreeRoot','(INTEGER)AASSMBLDBID=1000301,(STRING)AASSMBLCD=131-9B,(INTEGER)AASSMBLBOMID=0','com.mxi.mx.web.query.assembly.BomItemTree','(INTEGER)AASSMBLDBID=1000301,(STRING)AASSMBLCD=131-9B,(INTEGER)AASSMBLBOMID=0',document.getElementById( 'idTreeContainer_idTableBomItems' ),'/maintenix','No Config Slots were found for the 131-9B Assembly.',true ); idTableBomItems.addColumn( 'radio','','left','checkbox',null,null,true,false,null ); idTableBomItems.addColumn( 'image','','left','image',null,null,true,false,null ); idTableBomItems.addColumn( 'bom_item','Config Slot','center','longString','dsObject( bom_item_cd_name )',1,true,false,null ); idTableBomItems.addColumn( 'num_positions','Num Positions','center','shortString','dsObject( pos_ct )',null,true,false,null ); idTableBomItems.addColumn( 'bom_class','Class','center','shortString','dsObject( bom_class_cd )',null,true,false,null ); idTableBomItems.addColumn( 'mandatory_bool','Mandatory','center','checkbox','dsObject( mandatory_bool )',null,true,false,null ); idTableBomItems.init(); </script> </form> The XPather add-on has no problem finding the xpath for the data in the table but Webtest can't seem to find out. I tried the Webtest recorder and got the following: <setRadioButton description="Check radio button aParentBomItem: 1000301:131-9B:3" name="aParentBomItem" value="1000301:131-9B:3"/> But that won't work in my test case. Any idea if it's possible to reach dynamic data like this from Webtest?? Thanks, Angel Hanlon's Razor: ``Never attribute to malice that which can be adequately explained by stupidity''. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

