C
C
Cesar12019-07-30 20:40:48
JavaScript
Cesar1, 2019-07-30 20:40:48

How to call a function on the client from Node JS?

Before parsing the site, I need to perform a client-side action, for example, call the $('button').trigger('click') function, similar to how I can call it through the chrome console. Is it possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-07-30
@Cesar1

"headless browsers", puppeteer
https://stackoverflow.com/questions/48207414/how-c...
won't help much anymore because I don't know exactly, but the await page.evaluate example does something like this
https://www .npmjs.com/package/puppeteer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question