I'm using Hound (with PhantomJS) to scrape a web page. The page in question lazily loads some of the content I need with Javascript.
This is what I'm doing currently.
def movies do
Hound.start_session
navigate_to(url())
:timer.sleep(6000)
# Do stuff with page_source()
end
How can I get Hound to wait for the page to be fully loaded without having to hard code an arbitrary timer?