Added locator param to search so the proper locator can be used base on
if the search is called by the page or by the notification