Skip to content

[Question]: Dynamic use of session storage #356

@aluckin3

Description

@aluckin3

Question

Hi,
i am trying to set up dynamic usage of session storage for multiple roles like in playwright documentation: https://playwright.dev/docs/auth#multiple-signed-in-roles

Currently i am using use state for one user, and tried to comment it and use across different steps, but it is not possible as i am getting this error:

    Most common reasons include:
    - You are calling test.use() in a configuration file.
    - You are calling test.use() in a file that is imported by the configuration file.
    - You have two different versions of @playwright/test. This usually happens
      when one of the dependencies in your package.json depends on @playwright/test.

I also tried with .addCookies but it didn't work for me. Do you have any suggestion how to use it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions