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
1 changed files with 8 additions and 5 deletions

View File

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