File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/selenium-ide/src/neo/playback/playback-tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -55,18 +55,26 @@ export class CommandNode {
55
55
isTerminal ( ) {
56
56
return (
57
57
ControlFlowCommandChecks . isTerminal ( this . command ) ||
58
- this . command . command === '' ||
59
- this . command . command . startsWith ( '//' )
58
+ this . command . command === ''
60
59
)
61
60
}
62
61
62
+ isDisabled ( ) {
63
+ return this . command . command . startsWith ( '//' )
64
+ }
65
+
63
66
execute ( commandExecutor , options , targetOverride ) {
64
67
if ( this . _isRetryLimit ( ) ) {
65
68
return Promise . resolve ( {
66
69
result :
67
70
'Max retry limit exceeded. To override it, specify a new limit in the value input field.' ,
68
71
} )
69
72
}
73
+ if ( this . isDisabled ( ) ) {
74
+ return Promise . resolve (
75
+ this . _executionResult ( commandExecutor , { result : 'success' } )
76
+ )
77
+ }
70
78
return commandExecutor . beforeCommand ( this . command ) . then ( ( ) => {
71
79
return this . _executeCommand (
72
80
commandExecutor ,
You can’t perform that action at this time.
0 commit comments