added local file detection to element.sendKeys