162163164165166167168169
break; case "crlf-injection": scannerIds = "40003"; break; } if (scannerIds == null) throw new UnexpectedContentException("No matching policy found for: " + policyName); scanner.setEnableScanners(scannerIds, true); }
56575859606162
public void setWebDriver(WebDriver driver) { this.driver = driver; } public void verifyTextPresent(String text) { if (!this.driver.getPageSource().contains(text)) throw new UnexpectedContentException("Expected text: ["+text+"] was not found."); }