public class W3CHtmlValidatorService extends Object
| Constructor and Description |
|---|
W3CHtmlValidatorService(TestCase testCase,
String pageSource,
boolean verbose)
Prepares for running a scan of current page source against W3C validation service.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
failed()
Returns the result of the assessment.
|
boolean |
verifyPageSourceWithW3validator()
Check the page source for current page with the W3C Validator API for HTML consistency.
|
public W3CHtmlValidatorService(TestCase testCase, String pageSource, boolean verbose)
testCase - The test case to log verification results to.pageSource - The page HTML source code to validateverbose - If set to false only errors will be logged. If set to true also warnings and W3C information messages will be logged.public boolean verifyPageSourceWithW3validator()
public boolean failed()
Copyright © 2019. All rights reserved.