public void SortTable() { var t = new HtmlTable(Driver.FindElement(ByExample1Table)); var start = t.GetCell(2, 2); t.GetCell(4, 1).Click(); var end = t.GetCell(2, 2); }
public void GetCellByIndexWithHeaderRow(int column, int row, string cell) { Assume.That(Driver.ElementExists(TablesPage.ByTableOne)); var table = new HtmlTable(Driver.FindElement(TablesPage.ByTableOne)); Assert.AreEqual(cell, table.GetCell(column, row).Text); }
public bool IsUserAssigned() { HtmlControl btn = new HtmlControl(_bw); btn.SearchProperties.Add(HtmlControl.PropertyNames.Class, "k-virtual-scrollable-wrap"); btn.DrawHighlight(); HtmlTable table = new HtmlTable(btn); HtmlControl cell; cell = table.GetCell(0, 3); cell.DrawHighlight(); if (cell.InnerText == "BSI TEST") { return(true); } else { return(false); } }
/// <summary> /// Retorna texto da tabela /// </summary> /// <param name="linha">int indice linha</param> /// <param name="coluna">int indice coluna</param> /// <param name="elementoTabela">HtmlTable tabela</param> /// <returns>string texto tabela</returns> public static string RetornarTextoTabela(int linha, int coluna, HtmlTable elementoTabela) { //Retorna Conteudo da Linha x Coluna return(elementoTabela.GetCell(linha, coluna).WebElement.Text); }