Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async navigateDeletePdfEntries (text, formName) {
await t
.useRole(admin)
.navigateTo(`${baseURL}/wp-admin/admin.php?page=${text}`)
.hover(formList(formName))
.click(formEntries(formName))
.hover(this.settingsMenu)
.click(link('.gf_submenu', 'PDF'))
let tempalte = await this.template.count
if (tempalte > 0) {
for (let i = 0; i < tempalte; i++) {
await t
.hover(this.template)
.click(this.deletePDF)
.click(this.confirmDelete)
.wait(2000)
}
}
}
}
async performAction(label) {
await t.hover(this.actionsButton).click(Selector('.dropdown-menu a').withText(label));
}
async clickOption(label) {
return t
.hover(this.button)
.click(_selector.find(`[role="menuitem"]`).withText(label));
}
};
pickVersion(label) {
return t
.hover(this._selector)
.click(this._selector.find('[role="menuitem"]').withText(label));
}
}
async applyRecursively() {
await t.hover(this.elem);
await t.click(Selector('gtx-button').withText('APPLY RECURSIVELY'));
}
async hover_element(el, text, time = 1) {
const element = await this.select_element(el, text);
await t.hover(element);
await this.pause(time);
},