refactor(base-driver): all drivers now support executeCommand
MODIFY
packages/base-driver/lib/protocol/protocol.js
packages/base-driver/lib/protocol/protocol.js
@@ -283,11 +283,7 @@ function buildHandler (app, method, path, spec, driver, isSessCmd) {
`${driver.constructor.name}.${spec.command}() with args: ` +
_.truncate(JSON.stringify(args), {length: MAX_LOG_BODY_LENGTH}));
- if (driver.executeCommand) {
driverRes = await driver.executeCommand(spec.command, ...args);
- } else {
- driverRes = await driver.execute(spec.command, ...args);
- }
// Get the protocol after executeCommand
currentProtocol = extractProtocol(driver, req.params.sessionId) || currentProtocol;

refactor(base-driver): all drivers now support executeCommand