Comparing version 1.0.5 to 1.0.6
@@ -9,3 +9,3 @@ { | ||
"description": "wbm is an API to send bulk message.", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"main": "src/index.js", | ||
@@ -12,0 +12,0 @@ "devDependencies": {}, |
@@ -54,4 +54,4 @@ const puppeteer = require("puppeteer"); | ||
try { | ||
await page.waitForSelector("div#startup", { hidden: true, timeout: 10000 }); | ||
await page.waitForSelector('div[data-tab="1"]', { timeout: 3000 }); | ||
await page.waitForSelector("div#startup", { hidden: true, timeout: 60000 }); | ||
await page.waitForSelector('div[data-tab="1"]', { timeout: 60000 }); | ||
await page.keyboard.press("Enter"); | ||
@@ -58,0 +58,0 @@ await page.waitFor(1000); |
@@ -10,6 +10,6 @@ const wbm = require('./src/index'); | ||
wbm.start().then(async () => { | ||
const contacts = [{ phone: '5535988841854', name: "Bruno", age: 1 }, | ||
{ phone: '5535988841854', name: "Bruno", age: 1 }, | ||
{ phone: '5535988841854', name: "Bruno", age: 1 }, | ||
{ phone: '5535988841854', name: "Bruno", age: 1 }]; | ||
const contacts = [{ phone: '5535988841854', name: "Bruno", age: 21 }, | ||
{ phone: '5535988841854', name: "Bruno", age: 21 }, | ||
{ phone: '5535988841854', name: "Bruno", age: 21 }, | ||
{ phone: '5535988841854', name: "Bruno", age: 21 }]; | ||
const message = 'hello {{name}} your age is {{age}}'; | ||
@@ -16,0 +16,0 @@ await wbm.sendCustom(contacts, message); |
60920