Skip to content

Expect reads all instances in multiremote mode #1966

Description

@trymeouteh

For some reason, when using multiremote, expect will fail since it will seem to read #my-button selector from both browser instances and not focus only on the current instance.

[0-0] Error in "Expect"
Error: Expect  to have text

Expected: "My Button"
Received: ["My Button", "My Button"]
    at Context.<anonymous> (file:///home/john/Desktop/wdio-multiremote-expect/tests/expect.js:6:32)

Git repo example...
https://github.com/trymeouteh/wdio-multiremote-expect

To reproduce...

git clone https://github.com/trymeouteh/wdio-multiremote-expect
cd wdio-multiremote-expect
npm i
chmod +x ./test.sh
./test.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions