public static HtmlHeaderCell GetHeaderCellByColumnIndex(this HtmlTable @this, int columnIndex) { HtmlHeaderCell header = new HtmlHeaderCell(@this); header.SearchProperties[HtmlCell.PropertyNames.RowIndex] = "0"; header.SearchProperties[HtmlCell.PropertyNames.ColumnIndex] = columnIndex.ToString(); header.Find(); return header; }
public static HtmlHeaderCell GetHeaderCellByColumnIndex(this HtmlTable @this, int columnIndex) { HtmlHeaderCell header = new HtmlHeaderCell(@this); header.SearchProperties[HtmlCell.PropertyNames.RowIndex] = "0"; header.SearchProperties[HtmlCell.PropertyNames.ColumnIndex] = columnIndex.ToString(); header.Find(); return(header); }
public string[] GetColumnNames() { UITestControlCollection cells = new HtmlHeaderCell(this).FindMatchingControls(); if (cells != null) { return(cells.GetValuesOfControls()); } return(null); }
public override CellBase CreateCell() { HtmlHeaderCell cell = new HtmlHeaderCell(); if (CellStyle != default(HtmlCellStyle)) { cell.Style = CellStyle; } return(cell); }
/// <summary> /// eduHistory /// </summary> public void eduHistory() { #region Variable Declarations HtmlHeaderCell uIIDCell = this.UIEducationHistoryInteWindow.UIEducationHistoryDocument.UIPanelRecordsGridTable.UIIDCell; HtmlHeaderCell uIEditCell = this.UIEducationHistoryInteWindow.UIEducationHistoryDocument.UIPanelRecordsGridTable.UIEditCell; HtmlHeaderCell uIDeleteCell = this.UIEducationHistoryInteWindow.UIEducationHistoryDocument.UIPanelRecordsGridTable.UIDeleteCell; HtmlCell uIDDCell = this.UIEducationHistoryInteWindow.UIEducationHistoryDocument.UIPanelRecordsGridTable.UIDDCell; #endregion // Click 'ID' cell Mouse.Click(uIIDCell, new Point(15, 12)); // Click 'Edit' cell Mouse.Click(uIEditCell, new Point(19, 12)); // Click 'Delete' cell Mouse.Click(uIDeleteCell, new Point(21, 12)); // Move 'DD' cell Mouse.StartDragging(uIDDCell, new Point(37, 17)); Mouse.StopDragging(uIDDCell, 3, -5); }
/// <summary> /// InvokeItemDetailsPage /// </summary> public void InvokeItemDetailsPage() { #region Variable Declarations HtmlHeaderCell uINameCell = this.UIABCnetworksInventoryWindow.UIABCnetworksInventoryDocument2.UICtl00_ctl00_MainContTable.UINameCell; HtmlCell uIXenonCell = this.UIABCnetworksInventoryWindow.UIABCnetworksInventoryDocument2.UICtl00_ctl00_MainContTable1.UIXenonCell; HtmlHyperlink uIXenonHyperlink = this.UIABCnetworksInventoryWindow.UIABCnetworksInventoryDocument2.UIXenonHyperlink; #endregion // Set flag to allow play back to continue if non-essential actions fail. (For example, if a mouse hover action fails.) Playback.PlaybackSettings.ContinueOnError = true; // Mouse hover 'Name' cell at (1, 1) Mouse.Hover(uINameCell, new Point(1, 1)); // Mouse hover 'Xenon' cell at (1, 1) Mouse.Hover(uIXenonCell, new Point(1, 1)); // Reset flag to ensure that play back stops if there is an error. Playback.PlaybackSettings.ContinueOnError = false; uIXenonHyperlink.SearchProperties.Add("InnerText", "Xenon", PropertyExpressionOperator.EqualTo); // Click 'Xenon' link Mouse.Click(uIXenonHyperlink, new Point(14, 12)); }
public override CellBase CreateCell(){ HtmlHeaderCell cell = new HtmlHeaderCell(); if(CellStyle!=default(HtmlCellStyle)) cell.Style= CellStyle; return cell; }