Re: Iterating through rows and clicking on specific row element
A side note: XPath is far not the best way to search for web elements in TestComplete's world unless you are considering cross-browser testing in the cloud (CrossBrowserTesting, BrowserStack, etc.). For the latter case you just have no other option.
> class = "ui-button" and when it got disabled the property is updated as class = "ui-button disabled"
Assuming I imagine the UI of your tested application correctly, you need to identify Next_Button using selector that does not rely on presence or absence of the 'disabled' substring in the value of the class property. Then you should check if class property contains 'disabled' substring, i.e. determine if the found button is enabled or not. And branch then appropriately.
Regards, /Alex [Community Hero] ____ [Community Heroes] are not employed by SmartBear Software but are just volunteers who have some experience with the tools by SmartBear Software and a desire to help others. Posts made by [Community Heroes] may differ from the official policies of SmartBear Software and should be treated as the own private opinion of their authors and under no circumstances as an official answer from SmartBear Software. The [Community Hero] signature is used with permission by SmartBear Software. https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame ================================