Allow sendKeys to receive an element

This allows to simulate file upload and test text fields
without focusing.