1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Use enter key to open node property instead of double click

This commit is contained in:
Kazuhito Yokoi 2020-01-14 19:24:50 +09:00
parent 530bf22bd5
commit 214d788029

View File

@ -19,8 +19,11 @@ function Node(id) {
} }
Node.prototype.edit = function () { Node.prototype.edit = function () {
browser.clickWithWait(this.id); browser.waitForVisible(this.id);
browser.clickWithWait(this.id); browser.moveToObject(this.id);
browser.buttonDown();
browser.buttonUp();
browser.keys(['Enter']);
// Wait until an edit dialog opens. // Wait until an edit dialog opens.
browser.waitForVisible('#node-dialog-ok', 10000); browser.waitForVisible('#node-dialog-ok', 10000);
} }