Skip to content

Commit 5694b32

Browse files
author
David Haeffner
committed
Fix broken store commands from right-click recording menu. Fixes #609
1 parent 8bc89e8 commit 5694b32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/selenium-ide/src/neo/IO/SideeX/recorder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,11 @@ export default class BackgroundRecorder {
393393
// In Google Chrome, window.prompt() must be triggered in
394394
// an actived tabs of front window, so we let panel window been focused
395395
browser.windows
396-
.update(this.windowSession.selfWindowId, { focused: true })
397-
.then(function() {
396+
.update(this.windowSession.ideWindowId, { focused: true })
397+
.then(() => {
398398
// Even if window has been focused, window.prompt() still failed.
399399
// Delay a little time to ensure that status has been updated
400-
setTimeout(function() {
400+
setTimeout(() => {
401401
message.value = prompt('Enter the name of the variable')
402402
if (message.insertBeforeLastCommand) {
403403
record(message.command, message.target, message.value, true)

0 commit comments

Comments
 (0)