Puppeteer: popupStore.popup.message is not a function

Hi

Im trying to use Puppeteer method “seeInPopup” but the following error is logged to the console: “popupStore.popup.message is not a function”.

Stacktrace:
TypeError: popupStore.popup.message is not a function

  •  at Puppeteer.seeInPopup (node_modules/codeceptjs/lib/helper/Puppeteer.js:369:46)*
    
  •  at Step.run (node_modules/codeceptjs/lib/step.js:70:47)*
    
  •  at recorder.add (node_modules/codeceptjs/lib/actor.js:92:23)*
    

I have the following installed:

  • codeceptjs version 2.5.0 (also tried version 2.6.6, the issue persist.)
  • puppeteer version 5.0.0

Can someone please help?

I tried today with the following versions installed and the issue persist:

  • codeceptjs version 2.6.6
  • puppeteer version 3.3.0

Perhaps Im missing an additional configuration… like “_addPopupListener” ?

Any help will be appreciated :slight_smile:

I feel that this is probably going to be an ongoing issue because of google’s stance on the use of javascript dialogs (https://developers.google.com/web/updates/2017/03/dialogs-policy). We found that a better user experience all around by replacing our javascript dialogs with css based modal windows. Codecept has no issue navigating those. Of course that can be a lot of work.