Example #1
0
 public GuiTextBox(AutomationElement textbox)
 {
     tbAutoEl = textbox;
     AutomationId = textbox.Current.AutomationId;
     Name = textbox.Current.Name;
     value = tbAutoEl.GetPattern<ValuePattern>(ValuePattern.Pattern);
 }
Example #2
0
        public GuiDataGrid(AutomationElement datagrid, string automationId)
        {
            dgAutoEl = datagrid;
            tablePatt = datagrid.GetPattern<TablePattern>(TablePattern.Pattern);

            AutomationId = automationId;

            HeaderNamesToIndex = new Dictionary<string, int>();
            HeaderIndexToNames = new Dictionary<int, string>();
            BuildHeaderDictCache();
        }
Example #3
0
 public GuiComboBox(AutomationElement comboBox)
 {
     _cmb = comboBox;
     _expandCollapse = _cmb.GetPattern<ExpandCollapsePattern>(ExpandCollapsePattern.Pattern);
 }
Example #4
0
 public GuiCell(AutomationElement autoEl, string columnName)
 {
     cell = autoEl;
     _owningColumnName = columnName;
     _value = cell.GetPattern<ValuePattern>(ValuePattern.Pattern);
 }
Example #5
0
 public GuiComboBoxItem(AutomationElement item)
 {
     _cmbItem = item;
     _selection = _cmbItem.GetPattern<SelectionItemPattern>(SelectionItemPattern.Pattern);
 }
Example #6
0
 private GuiTabItem(AutomationElement ti, string automationId)
 {
     Window = ti;
     _selection = Window.GetPattern<SelectionItemPattern>(SelectionItemPattern.Pattern);
     AutomationId = automationId;
 }