mattcarp
14 years agoNew Contributor
Issues With Mapping in Web Apps
Hello and thank you for creating a Novice User section, as this is certainly a novice question.
I have the pleasure of testing a web-based application which dynamically creates a DOM tree with different object names each time a page loads. Thus when playing back my Keyword Tests I always get an Object Not Found. Here is an actual example for a TextNode ode that I'm trying to set a Property Checkpoint on:
Aliases.firefox.pagePromo.panelExtComp1576.panelExtGen107.panelExtGen108.panelExtComp1566.Panel("ext_gen286").Panel("ext_gen287").Panel("Campaigns").Panel("ext_gen306").Panel("ext_gen308").Panel("ext_comp_1054").Panel("ext_gen345").Panel("ext_gen346").Panel("ext_gen349").Panel("ext_comp_1046").Panel("ext_gen351").Panel("ext_gen352").Panel("ext_comp_1595").Table(0).Cell(0, 5).TextNode("ext_gen19")
That last TextNode has an innerHTML property of "Active Campaigns", which is what I want to verify in my Property Checkpoint. I've tried re-parenting the item, and have mapped it so that it is identified by ObjectType=TextNode, innerHTML=Active Campaigns, and className=active-breadcrumb, all of which appear to be static across runs of the application. I've set the "Extended Find" checkbox. I still get "Object Not Found" when playing back the test.
Any advice on this would be greatly appreciated. Thanks!
matt
I have the pleasure of testing a web-based application which dynamically creates a DOM tree with different object names each time a page loads. Thus when playing back my Keyword Tests I always get an Object Not Found. Here is an actual example for a TextNode ode that I'm trying to set a Property Checkpoint on:
Aliases.firefox.pagePromo.panelExtComp1576.panelExtGen107.panelExtGen108.panelExtComp1566.Panel("ext_gen286").Panel("ext_gen287").Panel("Campaigns").Panel("ext_gen306").Panel("ext_gen308").Panel("ext_comp_1054").Panel("ext_gen345").Panel("ext_gen346").Panel("ext_gen349").Panel("ext_comp_1046").Panel("ext_gen351").Panel("ext_gen352").Panel("ext_comp_1595").Table(0).Cell(0, 5).TextNode("ext_gen19")
That last TextNode has an innerHTML property of "Active Campaigns", which is what I want to verify in my Property Checkpoint. I've tried re-parenting the item, and have mapped it so that it is identified by ObjectType=TextNode, innerHTML=Active Campaigns, and className=active-breadcrumb, all of which appear to be static across runs of the application. I've set the "Extended Find" checkbox. I still get "Object Not Found" when playing back the test.
Any advice on this would be greatly appreciated. Thanks!
matt