-
-
Notifications
You must be signed in to change notification settings - Fork 88
Support for disabling JavaScript at navigation #124
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
Conversation
I am sorry, I am not writing any tests. |
packages/goto/src/index.js
Outdated
} | ||
|
||
if (disableJavaScript) { | ||
await page.setJavaScriptEnabled(!disableJavaScript) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha just true
there is enough 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are completely right... 😝
But I think it should be false
in this case though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's right!
@Timkor no problem, it looks good. Do you know any URL for testing this? |
@Kikobeats You could send some HTML string with a script, which alters the page, to browserless. And then check if the alternation did not succeed. I think that's the easiest solution for testing. |
@Kikobeats Thank you very much. |
No description provided.