expect-webdriverio icon indicating copy to clipboard operation
expect-webdriverio copied to clipboard

Expect reads all instances in multiremote mode

Open trymeouteh opened this issue 2 months ago • 0 comments

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

trymeouteh avatar Dec 16 '25 19:12 trymeouteh