Adding By.directive locator