I've successfully tested fileUploadSimple http://www.primefaces.org/showcase/ui/fileUploadSimple.jsf with webElement.sendKeys() method. It doesn't work with Auto upload
Is there any way to test PrimeFaces fileUploadAuto http://www.primefaces.org/showcase/ui/fileUploadAuto.jsf with Selenium WebDriver?
I also have like your development. I am going to share my knowledge but there might a better way.
jsf-code at servier side
html-code at client side
lifeProposalEntryForm:proposalAttachment_input
byid
.second button
of<div id="lifeProposalEntryForm:proposalAttachment"
.Selinium Testing in java
Try as I mention. It is work for me.