expect-webdriverio
expect-webdriverio copied to clipboard
Expect reads all instances in multiremote mode
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