fix(whatsapp.gblib): FIX on HEAR ON after provider change.

This commit is contained in:
rodrigorodriguez 2022-10-16 14:46:41 -03:00
parent 1d8e7e1763
commit c66f9bfe04
2 changed files with 5 additions and 3 deletions

View file

@ -392,11 +392,13 @@ export class DialogKeywords {
/**
* Types the text into the text field.
*
* @example TYPE page, "elementName", "text"
* @example SET page, "elementName", "text"
*/
public async type(step, page, idOrName, text) {
public async setElementText(step, page, idOrName, text) {
GBLog.info(`BASIC: Web Automation TYPE on ${idOrName}: ${text}.`);
const e = await this.getBySelector(page, idOrName);
await e.click({ clickCount: 3 });
await page.keyboard.press('Backspace');
await e.type(text, { delay: 200 });
await this.debugStepWeb(page);
}

View file

@ -466,7 +466,7 @@ export class SystemKeywords {
if (file._javascriptEnabled) {
GBLog.info(`BASIC: Web automation setting ${file}' to '${value}' (SET). `);
await this.dk.type(null, file, address, value);
await this.dk.setElementText(null, file, address, value);
return;
}