Here's my code
importSnapBotfrom"./snapbot.js";constbot=newSnapBot();letcredentials={username: "myUsername",password: "myPassword",};awaitbot.launchSnapchat({headless: false,userDataDir: "C:\\Users\\yourname\\AppData\\Local\\Google\\Chrome\\User Data\\Default",args: ["--start-maximized","--force-device-scale-factor=1","--use-fake-ui-for-media-stream","--allow-file-access-from-files","--enable-media-stream",],});awaitbot.login(credentials);constlogged=awaitbot.isLogged()//returns a booleanif(!logged){awaitbot.login(credentials);}else{console.log("bot is already logged");}constrecipients=awaitbot.listRecipients();console.log(recipients);And I got this error in the terminal :
`➜ SnapBot git:(main) ✗ npm run bot
snapbot@1.0.0 bot
node index.js
Username field error: Error: No element found for selector: button[type='submit']
at assert (/home/selofaney/Documents/flamebot/SnapBot/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js:18:15)
at CdpFrame.click (/home/selofaney/Documents/flamebot/SnapBot/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:755:40)
at async SnapBot.login (file:///home/selofaney/Documents/flamebot/SnapBot/snapbot.js:113:7)
at async file:///home/selofaney/Documents/flamebot/SnapBot/index.js:25:1
Waiting for password field...
`
I'm using Arch Linux
Here's my code
And I got this error in the terminal :
`➜ SnapBot git:(main) ✗ npm run bot
Username field error: Error: No element found for selector: button[type='submit']
at assert (/home/selofaney/Documents/flamebot/SnapBot/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js:18:15)
at CdpFrame.click (/home/selofaney/Documents/flamebot/SnapBot/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:755:40)
at async SnapBot.login (file:///home/selofaney/Documents/flamebot/SnapBot/snapbot.js:113:7)
at async file:///home/selofaney/Documents/flamebot/SnapBot/index.js:25:1
Waiting for password field...
`
I'm using Arch Linux