Please tell, how to locate the control which generates ID dynamically ?
My problem is : My test project requires four sections:Create,edit,revert and delete a username. Every time create,the username will generate a Id in the database.Then the problem occurs, I create a user(e.g: Id:12) ,after edit,revert and delete,now I run the script, it creates a user (id 13) again ,then it edits ,failed...revert and delete failed too.
I find the ranorex locates the element by html tags and the corresponding specific Id.But the Id is generated dynamically ,how can I handle the problem?
Ask general questions here.
2 posts • Page 1 of 1
- Support Team
- Site Admin
- Posts: 12169
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
I would suggest you to find another attribute to identify your element. Therefore I would suggest you to read following blog http://www.ranorex.com/blog/ranorexpath-tips-and-tricksDale Nikola wrote:I find the ranorex locates the element by html tags and the corresponding specific Id.But the Id is generated dynamically ,how can I handle the problem?