replace xpath method call with find call