Skip to content

Commit

Permalink
fix(whatsapp.gblib): FIX on HEAR ON after provider change.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 16, 2022
1 parent 1d8e7e1 commit c66f9bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/basic.gblib/services/DialogKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c66f9bf

Please sign in to comment.