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
I originally had nightmare-load-filter blocking the URL that I didn't want to open, but my script was still hanging -- I see a download link opens up.
So I added nightmare-download-manager and set ignoreDownloads: true in the Nightmare setup but that didn't help. Apparently I tried this a while ago... segment-boneyard/nightmare#1071
The window opens from this code: <script>window.open('SomePage.aspx?ID=1234');</script>
It seems this isn't getting caught by the filter or download manager. Doing an evaluate to remove the script doesn't always catch it before it executes.
I even tried clobbering the window.open using this code: if(typeof window.open === 'function') window.open=null; in my wait, but that didn't seem to help.
Any suggestions?
The text was updated successfully, but these errors were encountered:
I originally had
nightmare-load-filter
blocking the URL that I didn't want to open, but my script was still hanging -- I see a download link opens up.So I added
nightmare-download-manager
and setignoreDownloads: true
in the Nightmare setup but that didn't help. Apparently I tried this a while ago... segment-boneyard/nightmare#1071The window opens from this code:
<script>window.open('SomePage.aspx?ID=1234');</script>
It seems this isn't getting caught by the filter or download manager. Doing an evaluate to remove the script doesn't always catch it before it executes.
I even tried clobbering the
window.open
using this code:if(typeof window.open === 'function') window.open=null;
in mywait
, but that didn't seem to help.Any suggestions?
The text was updated successfully, but these errors were encountered: