You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Username field error: Error: No element found for selector: button[type='submit'] #2
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
Activity
0xF9M commentedon Dec 24, 2025
Try using the Enter key as a fallback
0xF9M commentedon Dec 24, 2025
This might interest you: #3
Lekebabiste commentedon Dec 24, 2025
Where I put this lines ?
I put it in snapbot.js but now I have to put me email manually
0xF9M commentedon Dec 25, 2025
Va voir mon fork ça devrait marcher : https://github.com/0xF9M/SnapBot
Lekebabiste commentedon Dec 25, 2025
Depuis quand tu parles français ?
Thanks alot! I added your code into the snapbot.js and it is working fine.