Hi everyone,
I’m currently automating a web application using UFT One, and I need some assistance with capturing the latest ID from a web table.
Here’s the situation:
I upload a file to the web application.
The uploaded data gets added into a web table as per picture below
The new entry (including the ID) is always added to the top of the table.
What I need to do is capture the latest ID from the most recently added row, because i need to click on the Download button using Insight Recording.
Currently, error will appear if I run the script due to multiple download icons in one table.
This issue can only be solved if I search the ID, which require me to catch the latest ID in order to search for it.
Here are my questions:
1.How can I reliably get the data from the first row in the web table after each upload?
2. Is there any specific method in UFT One I should use to interact with the first row of the table?
3. Are there any best practices for handling web tables with dynamic content in UFT One?
Any advice or sample code would be greatly appreciated. Thanks!