Closed shivamjjha closed 3 years ago
@shivamjjha Have you resolved it?
No, not yet, I've tried waitFor.js and other suggestions on Stack Overflow. But none of them worked. Now I am using Nightmare.js
But knowing how to do it with phantom.js will be nice, though
Also, for reference, you can See my quesiton on Stack Overflow
Describe the problem A clear and concise description of what the problem is.
Versions phantom 2.1.1 on windows
Steps to Reproduce
I am just trying to get deals items from this amazon URL :
when I open this link in browser and write the query in console, it works:
document.querySelectorAll('div[class*="DealItem-module__dealItem_"]')
but when I try to fetch this through this
phantomjs
script, it seems to always returning nothing:Additional context
Also, when I try to take screenshot using
page.render()
, it shows page with unloaded/unfinished JS (which is different from when we type that URL in browser and search:):Also, I noticed that when I run this script in terminal, I get some JS errors of webpage:
Any help will be greatly appreciated