Here is the button inspect element for which file upload is not working
<button class="btn btn-success text-capitalize" id="ac-btn-imprt" type="button">Browse File</button>
So when I try to do sendkeys, it doesn't work because for send keys it has to be the input tag in my case it is as type=button
.
Thanks in advance.
Note
I am using selenium with java to automate my application.
I have used robot class which works intermittently and i couldn't able to debug the robot class implementation as I haven't worked on it.