Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Feature Request: Allow protractor to use promise as capabilities for multiCapabilities #1594

@hankduan

Description

@hankduan

related:
http://stackoverflow.com/questions/27264146/setting-firefox-profile-in-a-setup-with-multiple-browsers
http://stackoverflow.com/questions/26435438/creating-another-session-with-a-separate-firefox-profile-in-protractor
#1040
#1592

Right now, protractor can only accept promise as capabilities if we are NOT using multicapabilities. The reason for this is because multiCapabilities runs each task in a new process, so the promise (function) cannot be passed (single capabilities work because we're not forking). Alternatively we could resolve capabilities in the launcher, before passing the resolved capabilities into the new processes; however, this will break #1040, which relies on capability promises to be resolved after driverProvider setup (i.e. for proxy purposes).

I can't think of an easy way of doing this (without large refactoring), but it is definitely doable. Just creating this issue to get a feel of how many people would benefit from being able to use promises in multiCapabilities and/or collect ideas.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions