/// <summary> /// Selects the file type for the scanned file. /// </summary> /// <param name="fileType">The file type to select (case sensitive).</param> public void SelectFileType(string fileType) { //var html = _controlPanel.GetControls(); ScrollToOption("FileTypeDialogButton"); Pacekeeper.Pause(); if (_controlPanel.GetProperty("FileTypeDialogButton", "Text") != fileType) { _controlPanel.PressToNavigate("FileTypeDialogButton", "DSFileTypeDialog", ignorePopups: false); Pacekeeper.Pause(); _controlPanel.ScrollPress("mFileTypeListBox", "Text", fileType); Pacekeeper.Sync(); _controlPanel.PressToNavigate("m_OKButton", _appMainForm, ignorePopups: false); Pacekeeper.Pause(); } }