public void setFileField(String fieldId, String filePath) { IHTMLInputElement fileInputField = (IHTMLInputElement)document.getElementById(fieldId); // TODO - Do more checking to verify SetForegroundWindow worked, // and complain if it doesn't. Win32.SetForegroundWindow(webBrowser.HWND); fileInputField.select(); System.Windows.Forms.SendKeys.SendWait(filePath); }
public void Select() { inputElement.select(); }