Unable to loop through a Grid - Openspan
Hi Team,
I want to click each and every row of java table grid and perform some operation. I was able to get the total rowCount of the Grid as well but the "For Loop" is not working and facing the below issues. Can you please help!
1. Am unable to set the grid Rowcount to ForLoop Limit(Currently I have hardcoded to 1000)
2. The ForLoop is not iterating.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.




To dynamically set the Limit on a ForLoop, right click on Limit and choose Reset Changes.
You can now hook up your grid.rowcount to the limit. Next, all execution from the ForLoop comes from the Yielded dot. So do something like this.
When you want to break out of your loop, use the Break Method of the ForLoop.
To dynamically set the Limit on a ForLoop, right click on Limit and choose Reset Changes.
You can now hook up your grid.rowcount to the limit. Next, all execution from the ForLoop comes from the Yielded dot. So do something like this.
When you want to break out of your loop, use the Break Method of the ForLoop.
When the loop is complete the execution will continue from the Completed dot. If you break, the execution will continue from the Break dot. Make sure your execution lines cover both scenarios if your ForLoop is going to break. The execution from both dots could go to the same place as well, but remember that Break and Completed must both be covered.