*
* @return HTML 4 Protocol class
*/
protected DOMProtocol createProtocol() {
final ProtocolBuilder builder = new ProtocolBuilder();
final DefaultDevice defaultDevice =
new DefaultDevice("Test Device", new HashMap(), null);
defaultDevice.setPolicyValue(
DevicePolicyConstants.SUPPORTS_JAVASCRIPT, "true");
InternalDevice device =
INTERNAL_DEVICE_FACTORY.createInternalDevice(defaultDevice);
return (DOMProtocol)builder.build(
new ProtocolRegistry.HTMLVersion4_0Factory(), device);
}