Revert "Add method hasElement for Driver"

This reverts commit 87c605d9b8f1c28fddfe411725fd78eb66e8ff51.