Method | Description | |
---|---|---|
Contains ( String value, String errorMessage = null ) : IValidation |
验证 HTML 中是否包含指定内容。
|
|
HasCssLink ( String cssHref, String errorMessage = null ) : IValidation |
验证 HTML Docuemnt 是否包含指定的 CSS 文件。
|
|
HasElement ( String elementId, String errorMessage = null ) : IValidation |
验证 HTML DOM 中是否存在指定的元素。
|
|
HasScriptLink ( String jsSrc, String errorMessage = null ) : IValidation |
验证 HTML Docuemnt 是否包含指定的 JS 文件。
|
|
InternalALinkExisting ( String searchBaseDirectory ) : IValidation | ||
ResourcesExisting ( String resourceBaseDirectory, String errorMessage = null ) : IValidation |
验证 HTML Docuemnt 中引用的资源十是否存在。
|
|
TitleEquals ( String excepted, String errorMessage = null ) : IValidation |
验证 HTML 网页标题是否等于预期的标题。
|
|
XPathEquals ( String templateFile ) : IValidation |
public static Contains ( String value, String errorMessage = null ) : IValidation | ||
value | String | |
errorMessage | String | |
return | IValidation |
public static HasCssLink ( String cssHref, String errorMessage = null ) : IValidation | ||
cssHref | String | |
errorMessage | String | 错误信息。 |
return | IValidation |
public static HasElement ( String elementId, String errorMessage = null ) : IValidation | ||
elementId | String | |
errorMessage | String | |
return | IValidation |
public static HasScriptLink ( String jsSrc, String errorMessage = null ) : IValidation | ||
jsSrc | String | |
errorMessage | String | 错误信息。 |
return | IValidation |
public static InternalALinkExisting ( String searchBaseDirectory ) : IValidation | ||
searchBaseDirectory | String | |
return | IValidation |
public static ResourcesExisting ( String resourceBaseDirectory, String errorMessage = null ) : IValidation | ||
resourceBaseDirectory | String | 资源的基础保存目录,将会基于此目录搜索相关资源文件。 |
errorMessage | String | 错误信息。 |
return | IValidation |
public static TitleEquals ( String excepted, String errorMessage = null ) : IValidation | ||
excepted | String | 预期的标题 |
errorMessage | String | |
return | IValidation |
public static XPathEquals ( String templateFile ) : IValidation | ||
templateFile | String | |
return | IValidation |