I’m trying to click on a li element which for some reason works as a size selector on a certain website. It looks like this And its html looks like this Each <li> represents one size option, I’ve tried some stuff but none of it works. my first attempt was using xpath: I also tried a regular …
Tag: node.js
Post a form in Node Js
I am trying to post data from a form in node JS and then see the data in console. When i click the button I can see the data in console but the websites starts loading and it doesnt end. The loading circle doesnt stop moving. and this is in my server.js file Answer Your backend has to send a
scrollIntoView() looping element on puppeteer
I want to scrape a list of posts while the page scroll is infinite loading. I want scrollIntoView() for each element in the loop. my code is temporarily like this and the result when the page is loaded, it bounces out but no error. For example, I want to take 20 posts and then the scraper will take the posts
Node.js getting Uncaught error: invalid input syntax for type integer: “NaN”
I am very new to JS and I’m trying to create an API using node.js however I’m getting the error: The requests are fine when I do a GET and POST request but I’m having trouble with the PUT and DELETE. I get the same error with both requests. Here is my code: I am very much new to this
Persistent file storage across electon app updates with electron-builder electron-updater
When I update an Electron app using the electron-builder autoUpdater, all the file storage I defined is overwritten. What settings do I need to make these files persist? Here is an MCVE example (for the main process): In this example I’d like the file persistentFile to persist across updates, so that it…
node.js express permission error on linux
using arch with admin user account and no sudo on this script: i get this error that didnt change when i changed the port or the url to trigger it it instantly gives me this error after i run the command: node site.js (the code above is site.js) if i run the script with sudo it works fine but i
How can I find and format visually aesthetically pleasant pattern of trees in a forest using javascript challenge question
There are examples of aesthetically pleasing trees: These are examples of not aesthetically pleasing trees That, given an array A consisting of N integers, where A[K] denotes the height of the K-th three, returns the number of ways of cutting out one tree, so that the remaining trees aesthetically pleasing. I…
mongo db + node returns the connection string
I’m working on a program which scrapes all the telegram messages, but we found out we needed a simple way of inserting and reading data(crud). I chose functional programing because oop is too imitating and too complex for me(if anyone has suggestions please hit me up because I don’t know where to …
Node js shared variables and multiple users and multiple entry-points
I have an node-js application that I’m switching from a single-tenant database to a multi-tenant database. The application code is called from an express api but there are also services that run through a different entrypoints, so req.session is not always available. Currently I have database function c…
Invite created event (discord.js v12)
I am trying to send an embed whenever a invite is created. Channel set file Index.js Modules (PS: I took the most relevant ones.) Index.js file I don’t think the two events (inviteCreate, message) belong I did it because I received a error: Now, the channel set features works as intended but whenever th…