I am trying to automate upload file functionality in Google Drive.
The element used to pass parameters is hidden with height - 0px.
None of the user actions
Try this:
WebElement elem = yourWebDriverInstance.findElement(
By.cssSelector(".uploadmenu > input"));
String js =
"arguments[0].style.height='auto'; arguments[0].style.visibility='visible';";
((JavascriptExecutor) yourWebDriverInstance).executeScript(js, elem);
Here I have replaced XPath by CSS Selector. Let me know Is the above scripting is working or not.