Match Data from Spreadsheet to Search Results in Table, Click Correct one

Sorry for the delayed response, been busy :slight_smile:

This helps:

//*[@id=“search_results_container”]/div/div/div/div[2]/a[1]/h4/text()

With this a few things. First if you go with text for some reason Katalon seems to not like that. Also you will notice the “a” it has “a[1]” meaning the first a. so we remove the 1 and it will look for any a

//*[@id=“search_results_container”]/div/div/div/div[2]/a/h4/text()

We can then apply the contains like this

//*[@id=“search_results_container”]/div/div/div/div[2]/a/h4/text()[contains(.,"Princess Belle")

Note I have “.” because we already call out we are looking for the text. please try this xpath. this SHOULD allow you to highlight the text. However this will still not be enough to identify the object so I would also add in parent. like this:

//*[@id=“search_results_container”]/div/div/div/div[2]/a/h4/text()[contains(.,"Princess Belle")/parent::a

This SHOULD highlight the a for you. it will be a very small highlight but should work for your purposes. Let me know. Ideally if this works you should then be able to change it to your variable and use it.

//*[@id=“search_results_container”]/div/div/div/div[2]/a/h4/text()[contains(.,searchResults)