First thing to do is check the versions of commons-io and httpclient are correct (they are quite a bit different from older versions and possibly different from newer versions if they have come out since that was written)
https://github.com/Ardesco/Powder-Monkey/blob/master/pom.xml
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/zgvmlFiEz34J.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/h3VsU3G00QkJ.
driver.findElement(By.id("photo")).click();
Runtime.getRuntime().exec("Z://browseExample.exe");
<div class="formbox">
<input type="password" value="Password" onclick="this.value == 'Password' ? this.value = '' : this.value;" onfocus="this.select()" onblur="javascript:return ShowDefaultText();" maxlength="255" title="Please enter password" name="textBoxPassword" tabindex="2" id="textBoxPassword" style="display: none;">
<input value="Password" onclick="this.value == 'Password' ? this.value = '' : this.value;" onfocus="javascript:return HideDefaultText();" maxlength="255" title="Please enter password" tabindex="2" name="textBoxPasswordRegular" class="logintext" id="textBoxPasswordRegular" style="display: block;">
</div>
; Wait 10 seconds for the Upload window to appear
WinWait("[CLASS:#32770]","",10)
; Set input focus to the edit control of Upload window using the handle returned by WinWait
ControlFocus("File Upload","","Edit1")
Sleep(2000)
; Set the File name text on the Edit field
ControlSetText("File Upload", "", "Edit1", "Z:\snipett.txt")
Sleep(2000)
; Click on the Open button
ControlClick("File Upload", "","Button1");