Fixed the implementation of click to block until the page is loaded
Merge pull request #159 from stof/fix_element_click

Fixed the implementation of click to block until the page is loaded