Loop through div ids

Hey guys,
already read a lot about loop (while and for), but no matter what I try that I find in other threads and forums, I cannot get it to work.

I want to loop through all div IDs on a specific page, and when reached continue on next page of pagination.

In script it says: WebUI.click(findTestObject(‘Page_Hendrik Deep Dream Generator/Open Picture in Lightbox’))

The selector editor says: (.//*[normalize-space(text()) and normalize-space(.)=‘Logout’])[1]/following::img[1]

What do I need to do now?

(.//*[normalize-space(text()) and normalize-space(.)='Logout'])[1]/following::img[1]

Do you understand what this XPath expression means? It is selecting an element next to an element (?) with a text content “Logout”. Is it actually what you want to click? — I doubt it.

I want to loop through all div IDs on a specific page

Please provide you test case code and tell us how you are trying to do "loop through all div"s

Please have a look at http://forum.katalon.com/discussion/9337/tip-my-test-is-broken-nothing-works-please-help-me