CSharp method to extract any table in a 2 dimension array:
private string[,] getYourSpecTable(){
return getArrayBy(By.CssSelector("table.SpecTable tr"), By.CssSelector("td"));
}
private string[,] getArrayBy(By rowsBy, By columnsBy){
bool init=false;
int nbRow=0, nbCol=0;
string[,] ret = null;
ReadOnlyCollection rows = this.webDriver.FindElements(rowsBy);
nbRow = rows.Count;
for(int r=0;r cols = rows[r].FindElements(columnsBy);
if(!init) {
init= true;
nbCol = cols.Count;
ret = new string[rows.Count, cols.Count];
}
for(int c=0;c