Skip to content

How to open multiple isolated windows using Selenium? #2803

@zedtux

Description

@zedtux

We have a test where we need to open 3 parallel sessions, which I tried to do using open_new_window(:window) and a driver configuring a remote Chrome (running in docker) in incognito mode (which I was wrongly supposing it would prevent windows to share session cookies).

I tried to use chrome profiles and wanted to open each window with a different profile, but I couldn't make it working because the test execution hangs when Capybara tries to open a new window (therefore it tries to create a new session on Selenium Grid).
When I kill the test, selenium takes the request and open the new Chrome window but it's too late.

Is there a way to open isolated windows with Capybara and Selenium?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions