title: Automating search functionality using Selenium - Java
body: <p>I need to automate search functionality as below:</p>
  
  <p>Search string = (X* OR "Y") AND Z</p>
  
  <p>On entering this search system should assert the result. My problems are:<br>
  1) How to make precedence among operators because if there is () then that should be executed and with its result other parts of search string to be checked.
  2) termi* can be terminate, terminator. How do we check this and assert
  3) "Stack Overflow" means the result should have exactly matched. How can we find and assert
  4) Likewise NOT operator, how can we assert
  Pls share with me if any kind of help you can provide.</p>
  
  <p>Thanks in advance.</p>