Forum Discussion

saranyanirmal's avatar
saranyanirmal
New Contributor
5 years ago

how to handle dynamic object

The keyword test generates dynamic id's at every execution and  it is causing issue while replaying , saying " parent object does not exists"

 

here are the details

Aliases.browser.pageXlonereportsubmit.buttonReportoutputsection2075Dow

 

I edited the properties and let me know if I commit any mistake.

.object type:Button
IdStr :ReportOutputSection*_DownloadButton_DDC_DefaultButton

 and it is not highlighted the object in the page

 

please tell me how to handle the dynamic ids. 

 

 

 

  • Hi,

     

    how to handle the dynamic ids.

    I may recommend to watch the "Using The Wildcard In The Name Map For Values That Change" and "How To Use Extended Find" videos from the https://support.smartbear.com/testcomplete/videos/ page for the recommendations on how to deal with the problem of dynamic tested object properties. (And read relevant sections of documentation that talk about object search and NameMapping)

     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    how to handle the dynamic ids.

    I may recommend to watch the "Using The Wildcard In The Name Map For Values That Change" and "How To Use Extended Find" videos from the https://support.smartbear.com/testcomplete/videos/ page for the recommendations on how to deal with the problem of dynamic tested object properties. (And read relevant sections of documentation that talk about object search and NameMapping)