Skip to content
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

Puppeteer/Firefox: I.setCookie does not seem to work #1762

Closed
hubidu opened this issue Jul 8, 2019 · 3 comments
Closed

Puppeteer/Firefox: I.setCookie does not seem to work #1762

hubidu opened this issue Jul 8, 2019 · 3 comments

Comments

@hubidu
Copy link
Contributor

hubidu commented Jul 8, 2019

What are you trying to achieve?

I want to set a cookie in my test:

I.setCookie({"domain":".check24-test.de","httpOnly":false,"name":"c24cb","path":"/","secure":false,"value":"1"}) at Object.loginWithSession (pages\customer-login.page.js:39:7)

What do you get instead?

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

1) Daten nachreichen
       Daten zu einem Fremdvertrag können flexibel nachgereicht werden @regression @story:VEVE-5471 | {"User":"teste2e-daten-nachreichen-04@check24.de","Versicherungsscheinnummer":"benötigt","Unterschrift":"vorhanden","Seiten":"policynumber,thankyou"}:
     Protocol error (Browser.deleteCookies): ERROR: failed to call method 'Browser.deleteCookies' with parameters {
  "browserContextId": null,
  "cookies": [
    {
      "url": "https://kundenbereich.check24-test.de/user/login.html",
      "domain": ".check24-test.de",
      "path": "/",
      "name": "c24cb"
    }
  ]
}
Expected "<root>.browserContextId" to be |string|; found |object| `null` instead. _dispatch@chrome://juggler/content/protocol/Dispatcher.js:100:15


  Scenario Steps:

  - I.setCookie({"domain":".check24-test.de","httpOnly":false,"name":"c24cb","path":"/","secure":false,"value":"1"}) at Object.loginWithSession (pages\customer-login.page.js:39:7)

Details

  • CodeceptJS version: 2.2.0
  • NodeJS Version: 10.15.3
  • Operating System: Windows
  • Puppeteer
  • Configuration file:
Puppeteer: {
      url: 'http://localhost',
      browser: 'firefox',
      show: process.env.HEADLESS ? false : true,
      waitForAction: 0,
      waitForNavigation: 'domcontentloaded',
      waitForTimeout: getWaitForTimeout(),
      getPageTimeout: 30000,
      restart: true,
      fullPageScreenshots: true,
      windowSize: '1900x1048',
},
@DavertMik
Copy link
Contributor

DavertMik commented Jul 8, 2019 via email

@Vorobeyko
Copy link
Collaborator

Puppeteer-firefox has issue - puppeteer/puppeteer#4470

@EgorBodnar
Copy link
Contributor

The issue was fixed: puppeteer/puppeteer#4850

And then the experimental puppeteer-firefox package has been deprecated. No longer maintained.

@DavertMik close the issue pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants