code: protected SeleniumTestScript loadSeleniumScript(File file) {
          Document doc = parse(file);
  
          SeleniumTestScript script = new SeleniumTestScript();
  
          script.setBaseUrl(getBaseUrl(doc));
  
          NodeList tdList = doc.getElementsByTagName("td");
  
          List<SeleniumTestStep> list = script.getTestStepList();
  
          SeleniumTestStep testStep = appCtx.getBean(SeleniumTestStep.class);
  
          for (int i = 1; i < tdList.getLength(); i++) {
              String nodeValue = tdList.item(i).getTextContent();
  
              switch ((i - 1) % 3) {
                  case 0:
                      testStep.setCommand(nodeValue);
                      break;
                  case 1:
                      testStep.setTarget(nodeValue);
                      break;
                  case 2:
                      testStep.setValue(nodeValue);
                      list.add(testStep);
                      log.debug("test.step.load", testStep.getCommand(), testStep.getTarget(),
                              testStep.getValue());
                      testStep = new SeleniumTestStep();
                      break;
                  default:
                      break;
              }
          }
  
          return script;
      }
docs: SeleniumScriptを読み込みます。
  
  @param file
  SeleniumScriptのファイル
  @return SeleniumTestStep