Forum Discussion

jhanny's avatar
15 years ago

How To Find Dynamically Created Table

I have found that I can click on a link in a web page I am testing by running the following JScript:




Aliases.IEXPLORE.pageSdb.panelDivbanner.table.cell.panelDivheadercontrol.table.cell.tableMsId4.cellListmanager.Click();


The problem I am running into is that tableMsId% is named dynamically when the web application is run. For example, it was called tableMsId4 when I created the script. But it could be tableMsId7 next time I open this web application and attempt to run the script. Does anyone have any thoughts what I can do to always be able to find this table?



1 Reply


  • Hi Jon,





    Once the tableMsId4 mapped object is created, open the Name Mapping editor and manually replace the variable part of the value for the idStr and ObjectIdentifier identification properties with the * character. After these modifications, you can use the tableMsId4 mapped object in your script in spite of the dynamic table name value.