I have to create one selenium script for testing if website search is working fine or not. On searching any content, results are displayed. But on UI no tags are displayed which i can capture for validation. Please suggest an approach for validating if search results are correctly displayed.
You can take the entire search results in a List, iterate through each element in the list and validate whether it is correct or not depending on the initial few starting characters[words] of the word[sentence]