Skip to content

Commit e26c482

Browse files
committed
when the connection is cut the result seems to be undefined rather than an error, treating as retry fixes #557
1 parent fa166da commit e26c482

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/selenium-ide/src/neo/IO/SideeX/ext-command.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ export default class ExtCommand {
245245
{ frameId: top ? 0 : frameId }
246246
)
247247
.then(r => {
248+
if (!r) {
249+
throw new Error('result is undefined')
250+
}
248251
return r
249252
})
250253
.catch(error => {

0 commit comments

Comments
 (0)