Beispiel #1
0
 public TableCells(ICollection tableCellElements, TableHeader tableHeader, ActionListener actionListener)
 {
     this.tableHeader = tableHeader;
     foreach (AutomationElement tableCellElement in tableCellElements)
     {
         Add(new TableCell(tableCellElement, actionListener));
     }
 }
Beispiel #2
0
 public virtual TableCells CreateCells(TableHeader tableHeader, AutomationElement rowElement)
 {
     if (customControlTypes == null)
         customControlTypes = new AutomationElementFinder(tableElement).Descendants(AutomationSearchCondition.ByControlType(ControlType.Custom));
     string rowNameSuffix = " " + rowElement.Current.Name;
     Predicate<AutomationElement> cellPredicate = element =>
     {
         string name = element.Current.Name;
         return name.EndsWith(rowNameSuffix);
     };
     List<AutomationElement> tableCellElements = customControlTypes.FindAll(cellPredicate);
     return new TableCells(tableCellElements, tableHeader, actionListener);
 }
Beispiel #3
0
 public virtual TableRows CreateRows(IActionListener actionListener, TableHeader tableHeader)
 {
     List<AutomationElement> rowElements = GetRowElements();
     return new TableRows(rowElements, actionListener, tableHeader, new TableCellFactory(automationElementFinder.AutomationElement, actionListener));
 }
Beispiel #4
0
 public TableRow(AutomationElement automationElement, ActionListener actionListener, TableHeader tableHeader, TableCellFactory tableCellFactory)
     : base(automationElement, actionListener)
 {
     this.tableHeader      = tableHeader;
     this.tableCellFactory = tableCellFactory;
 }
Beispiel #5
0
 public TableRow(AutomationElement automationElement, ActionListener actionListener, TableHeader tableHeader, TableCellFactory tableCellFactory)
     : base(automationElement, actionListener)
 {
     this.tableHeader = tableHeader;
     this.tableCellFactory = tableCellFactory;
 }