/// <summary> /// Set non filter cell by value /// </summary> /// <param name="column">Column number</param> /// <param name="row">Row number</param> /// <param name="value">String Value</param> public void SetCellValue(string column, int row, string value) { AppiumWebElement headerCell = _table.FindElementByName(column); SetCellVisible(headerCell); AppiumWebElement cell = _table.FindElementByName(column + " row " + row); cell.SetValue(value); }
/// <summary> /// Set the Value of filter /// </summary> /// <param name="column">Column number</param> /// <param name="value">Value of Filter</param> public void SetFilterCell(string column, string value) { AppiumWebElement headerCell = _table.FindElementByName(column); SetCellVisible(headerCell); AppiumWebElement filterCell = _table.FindElementByXPath($"//Custom[@Name='Filter Row']/DataItem[starts-with(@Name, '{column}')]"); filterCell.SetValue(value); }