add more checking to make sure web element is ready for testing
Merge pull request #1344 from lzhan/next

add more checking to make sure web element is ready for testing