You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
Does onInitialized necessarily run before any scripts that are on the page?
If there are script tags in the page's HTML, yes, the onInitialized callback will be invoked immediately before the first page script is evaluated.
If there are NOTscript tags in the page's HTML, then the onInitialized callback will not be invoked at all (see Issues #10772, #12387)... unless [apparently] you then probe the page with Phantom-based script injections like page.evaluate (see Issue #11684).
Also, please note that this setup will not cover your bases [currently] for framed pages (iframe, frameset, etc.) AFAIK (see Issue #10608).
Can I do this if I'm using Phantom via Selenium?
No idea, I have never used Phantom via Selenium before. Sorry!
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
Could we have a setting to turn this feature off? I'd like Phantom to behave the same as other browsers, to the greatest extent possible.
There was a related mailing list discussion a few years ago but it doesn't seem like the subject was ever revisited.
Being able to customize the name of this variable instead of hard-coding it to
callPhantom
would also be a fine workaround (for my case, at least).The text was updated successfully, but these errors were encountered: