+
),我要点击; +
)为disabled
。问题描述:
首先,我选择非活动表中的元素,然后点击其加号图标。
代码:
var reactivate_categoryStatus = function() {
describe("", function() {
it("reactivate category", function(browser) {
variables.createdActivityCategoryName = 'testCategory_2017Apr19184658';
browser.pause(2000);
commands.checkAndPerform('click', browser, elements.adminRelationshipManagementPageElements.activityStatusInactiveLink);
browser.pause(2000);
browser.elements("xpath", elements.adminRelationshipManagementPageElements.activityStatusInactiveTable + "/tbody/tr", function(result) {
var els = result.value;
var count = 0;
els.forEach(function() {
count = count + 1;
browser.getValue(elements.adminRelationshipManagementPageElements.activityStatusInactiveTable + "/tbody/tr[" + count + "]/td[1]/input", function(result) {
// console.log(" >>>>>>>>>>>>>>Create name Of status activity "+variables.createdActivityCategoryStatusName);
if (result.value.includes(variables.createdActivityCategoryStatusName)) {
console.log('inactive name to reactivate : ' + result.value);
console.log(" >>>>>>>>>>>>>> if con status activity " + variables.createdActivityCategoryStatusName);
commands.checkAndPerform('click', browser, elements.adminRelationshipManagementPageElements.activityStatusInactiveTable + "/tbody/tr[" + count + "]/td[2]/span");
}
});
});
});
browser.pause(2000);
});
});
};
exports.reactivate_categoryStatus = reactivate_categoryStatus;