ferret
ferret copied to clipboard
Document is no longer available (null) after submitting a form
Hello there,
I try to scrap a website with a form, when I submit the form with this action :
LET buttonSearch =( FOR el IN ELEMENTS(doc, 'button') FILTER el.attributes['data-e2e'] == 'buttonSearch' RETURN el )
CLICK(buttonSearch[0])
When the page is loaded when I try to do
RETURN doc
my result is ""
Why the doc is no more available?
Thx for your help
What happens on the page when you submit the form?
Hey @ziflex i have no issue I get the right page with all information but the doc is empty
It could be due to the page navigation event. Probably, when the return statement had been executed the page was not fully loaded yet.
How it could be possible, when I introduce a pause of 60 seconds it's the same result. 😨