Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Devilmaydante opened this issue Jul 6, 2023 · 4 comments
Open

Comments

@Devilmaydante
Copy link

Devilmaydante commented Jul 6, 2023

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

@ziflex
Copy link
Member

ziflex commented Jul 7, 2023

What happens on the page when you submit the form?

@Devilmaydante
Copy link
Author

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

@ziflex
Copy link
Member

ziflex commented Jul 10, 2023

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

@Devilmaydante
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants