I would like to find a string by iterating all elements in the response and not only any particular position as example below , I would like to remove that indexing on the retry and like to improve the logic to retry in whole response and find the string
**When path getFormattedActivitiesForDeal + BR
And header Authorization = 'Bearer '+ PC_User_accessToken
And header Content-Type = 'application/json'
And retry until response[0].dealActivities[4].action == "Checked: Driver’s Licence"
When method get
Then status 200
And json getResponse = response
And assert response[0].dealActivities[4].result == "Validated"**