3 ms·
Sure, it can work great if your needs are simple. But if you're posting data to forms which you need from a database, and you don't know what you might need fro
by baudehlo 15y ago
Sure, it can work great if your needs are simple. But if you're posting data to forms which you need from a database, and you don't know what you might need from the DB until runtime, it can get a bit more complex.
Also worth noting that jsdom is quite slow, and has a strict HTML parser. If you want something faster that will cope with more web pages, look up cheerio.
- MatthewPhillips 15y agoRemember that Phantom just runs a web browser. So writing a Phantom script is like writing an app on top of another app. This means you can use XMLHttpRequest or WebSockets to communicate with a back-end if that's necessary.