I am using Katalon Recorder to test a page where a dynamic list pops up. I need to find that at least one item in the list contains specific text. I am using a WHILE loop and assertEval using .includes to looks for these phrases. The problem is that my only options are TRUE or FALSE, so the test will fail and stop because it assumes I want ALL results to be only true or false, whereas I just need to make sure it finds one instance.
First picture is showing the webpage giving us a dynamic list after inputting “CHINA.” I now need to verify that the dynamic list which appears has at least one entry with the words “RIVERS EDGE” and at least one entry with the word “CARDINAL” in it.
The second picture is the logic I’m trying to use, but I run into the problem where it expects every item on that list to assert TRUE or it fails. I just need ONE item to assert true for each phrase. How would you go about doing this?
The logic I’m using right now expects everything on the list to have the same result.