Clicking on the upload button using click method or submit in Selenium Test Automation doesnt work. Have tried to execute the jquery using click, but it doesnt work.
((IJavaScriptExecutor)driver).ExecuteAsyncScript(String.Format("$('#attachments').click();"));
here #attachments is the id of the select/upload button. I have tried to use ExecuteSyncScript too which doesnt work.