CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Puppeteer Library BUG: this.browser.deleteCookie is not a function

Open elena-dev-thought opened this issue 8 years ago • 2 comments

What are you trying to achieve?

Run tests locally using Puppeteer

What do you get instead?

Defects: this.browser.deleteCookie is not a function

Provide console output if related. Use --verbose mode for more details.

     this.browser.deleteCookie is not a function
  ypeError: this.browser.deleteCookie is not a function
      at Puppeteer._after (node_modules/codeceptjs/lib/helper/Puppeteer.js:133:26)
      at recorder.add (node_modules/codeceptjs/lib/listener/helpers.js:21:69)
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

Provide test source code if related

The test is working with WebdriverIO, but not with puppeteer

// paste test

Details

  • CodeceptJS version: 1.1.5
  • NodeJS Version:
  • Operating System: OS High Sierra
  • Protractor || WebDriverIO || Nightmare version (if related): Puppeteer 1.0.0
  • Configuration file:
# paste suite config here

elena-dev-thought avatar Feb 20 '18 10:02 elena-dev-thought

I've confirmed the bug, I'll submit a PR very soon to fix it.

reubenmiller avatar Feb 20 '18 11:02 reubenmiller

Fixed in v1.1.6 which was release today.

reubenmiller avatar Mar 01 '18 14:03 reubenmiller