Improved the way to find element in selenium. #32

Backport to 1.0.x from #104.
Please review #32, and merge to 1.0.x branch.