mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Update XPath to the latest
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
var util = require("util");
|
||||
var util = require('util');
|
||||
|
||||
var nodePage = require("../../node_page");
|
||||
var nodePage = require('../../node_page');
|
||||
|
||||
function changeNode(id) {
|
||||
nodePage.call(this, id);
|
||||
@@ -85,7 +85,7 @@ changeNode.prototype.ruleMove = function (p, to, index) {
|
||||
}
|
||||
|
||||
changeNode.prototype.addRule = function () {
|
||||
browser.clickWithWait('//*[@id="dialog-form"]/div[3]/div/a');
|
||||
browser.clickWithWait('//*[@id="dialog-form"]/div[5]/div/a');
|
||||
}
|
||||
|
||||
module.exports = changeNode;
|
||||
|
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
var util = require("util");
|
||||
var util = require('util');
|
||||
|
||||
var nodePage = require("../../node_page");
|
||||
var nodePage = require('../../node_page');
|
||||
|
||||
function jsonNode(id) {
|
||||
nodePage.call(this, id);
|
||||
@@ -28,8 +28,8 @@ jsonNode.prototype.setAction = function (action) {
|
||||
browser.setValue('node-input-action', action);
|
||||
}
|
||||
|
||||
jsonNode.prototype.setProperty = function(property) {
|
||||
browser.setValue('//*[@id="dialog-form"]/div[2]/div/div/input', property);
|
||||
jsonNode.prototype.setProperty = function (property) {
|
||||
browser.setValue('//*[@id="dialog-form"]/div[4]/div/div[1]/input', property);
|
||||
}
|
||||
|
||||
module.exports = jsonNode;
|
||||
|
Reference in New Issue
Block a user