I have been experimenting with different methods to identify and capture the message "No matches found".
The CSS path I am currently using is "#searchResultsWarningMessageBox > table > tbody > tr > td.messageCell > div"
WebElement txtMsg = driver.findElement(By.cssSelector("#searchResultsWarningMessageBox > table > tbody > tr > td.messageCell > div > class.messageText"));
WebElement txtMsg = driver.findElement(By.cssSelector("#searchResultsWarningMessageBox > table > tbody > tr > td.messageCell > div));
class="messageTable" border="0" cellpadding="0" cellspacing="0">No matches found
Any insights or suggestions?