I want to verify that no error notifications have been shown. To do this I use the following find expression: TagName=div,class=~mistro-notification-container,|,TagName=div,class=~mistro-notification,style=!display: none and I set invertCondition to true when I do the wait to see if shown. ActiveBrowser.WaitForElement(htmlFindExpression, 33000, true); The problem is that I have markup with divs that have the following classes and structure: <div .. class="mistro-notification-container... <div .. class="mistro-notification... <div .. class="mistro-notification-subtitile... <div .. class="mistro-notification-message.... And what happens is the find expression class=~mistro-notification actually finds the subtitle as it has no display: none on it. I want to be able to express HasClass like jquery: http://api.jquery.com/hasclass/ as this does exactly what I need, and will not detect partial class names? I have a workaround for this now... I just added some additional clauses to filter out those other classes. TagName=div,class=~mistro-notification-container,class=!mistro-notification-message,class=!mistro-notification-subtitle,|, TagName=div,class=~mistro-notification,style=!display: none However this is not very future proof... as if nested elements get added with additional classes that partially match the one expressed in my htmlfindexpression the test could break. Regards, Scott