ferret icon indicating copy to clipboard operation
ferret copied to clipboard

Document is no longer available (null) after submitting a form

Open Devilmaydante opened this issue 2 years ago • 4 comments
trafficstars

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

Devilmaydante avatar Jul 06 '23 20:07 Devilmaydante

What happens on the page when you submit the form?

ziflex avatar Jul 07 '23 15:07 ziflex

Hey @ziflex i have no issue I get the right page with all information but the doc is empty

Devilmaydante avatar Jul 07 '23 19:07 Devilmaydante

It could be due to the page navigation event. Probably, when the return statement had been executed the page was not fully loaded yet.

ziflex avatar Jul 10 '23 23:07 ziflex

How it could be possible, when I introduce a pause of 60 seconds it's the same result. 😨

Devilmaydante avatar Jul 11 '23 06:07 Devilmaydante