Selenium Automation Framework - can individual search results be identified as objects

How do I create a test in the new framework that checks an individual search result to see if it contains specific information. I want the test to look for say the citation, case name and judgment date but it must check within the context of the specified result and not the page as a whole. Had some information from Radhika as follows but interested in seeing a worked example if possible:- "You can store - anns v merton in a variable say $var1 and append it with citation '178 ac 728 ' and store in a new variable by using setscriptvalue as below action=setscriptvalue input value=$var1 + "178 ac 728" result name = $var2 Then use $var2.equals() to check the actual and expected strings." Thanks Steph