.first()
.click(); // click toggle menu
await $('li.delete.ng-star-inserted').click(); // click delete
- // wait for pop-up to be visible (checks for title of pop-up)
- await this.waitVisibility($('.modal-body'));
await this.clickCheckbox($('.custom-control-label'));
await element(by.cssContainingText('button', 'Delete RBD')).click();
await this.waitStaleness(this.getTableCell(name));
const tagName = await elem.getTagName();
let label: ElementFinder = null; // Both types are clickable
+ await this.waitPresence(elem);
if (tagName === 'input') {
if ((await elem.getAttribute('type')) === 'checkbox') {
label = elem.element(by.xpath('..')).$(`label[for="${await elem.getAttribute('id')}"]`);
);
}
+ await this.waitClickable(label);
return label.click();
}
await this.getTableCell(name).click();
await $('.table-actions button.dropdown-toggle').click(); // open submenu
await $('li.delete a').click(); // click on "delete" menu item
- // wait for pop-up to be visible (checks for title of pop-up)
- await this.waitVisibility($('.modal-body'));
await this.clickCheckbox($('.custom-control-label'));
await element(by.cssContainingText('button', 'Delete Pool')).click();
return this.waitStaleness(this.getTableCell(name));