Skip to content

Commit 02d63f3

Browse files
committed
Live interaction on main screen
1 parent e4b1dd7 commit 02d63f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/service/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default class DevToolsHookService implements Services.ServiceInstance {
136136
}
137137

138138
afterCommand(command: keyof WebDriverCommands, args: any[], result: any, error?: Error) {
139-
if (this.#browser && error) {
139+
if (this.#browser) {
140140
return this.#sessionCapturer.afterCommand(this.#browser, command, args, result, error)
141141
}
142142
}

packages/service/src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class SessionCapturer {
5151
* @param {object} result command result
5252
* @param {Error} error command error
5353
*/
54-
async afterCommand (browser: WebdriverIO.Browser, command: keyof WebDriverCommands, args: any[], result: any, error: Error) {
54+
async afterCommand (browser: WebdriverIO.Browser, command: keyof WebDriverCommands, args: any[], result: any, error: Error | undefined) {
5555
const timestamp = Date.now()
5656
const sourceFile = parse(new Error(''))
5757
.filter((frame) => Boolean(frame.getFileName()))

0 commit comments

Comments
 (0)