private SubTest getSubTestResult(WebElement resultLine) {
    SubTest subTest = new SubTest();
    List<WebElement> cells = resultLine.findElements(By.tagName("td"));
    for (int indexCell = 0; indexCell < cells.size(); indexCell++) {
      String value = cells.get(indexCell).getText();
      switch (indexCell) {
        case 0:
          { // contains the result value
            subTest.setActualResult(value.toUpperCase());
            break;
          }
        case 1:
          { // contains the name of the sub test
            subTest.setName(value);
            break;
          }
        case 2:
          { // contains the error message (if exists)
            value = value.split("\n")[0];
            subTest.setMessage(value);
            break;
          }
      }
    }
    return subTest;
  }
Get the sub test result from the web element

@param resultLine the web element containing the result
@return the SubTest object.
KITE-WPT-Test/src/main/java/org/webrtc/kite/wpt/pages/WPTTestPage.java