Exemple #1
0
        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);
        }
Exemple #2
0
 public void Select()
 {
     inputElement.select();
 }