-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-Browser Support #42
Comments
same here, try to add two browser caps (chrome/ff) in wdio.conf.js by this example but its not working.
:´( EDIT: i tried this and it works for me. wdio.conf.js
myTest.js
|
Okay spent some time trying to fork the repo to make it compatible to Mutliremote and while running the very first tests, noticed a simple solution worth sharing. In your wdio.conf.js
add this to to config to associate wd-screenshot commands to each of the browser instances
That's it! Now you can just call browserC.saveDocumentScreenshot() and it works. |
Currently wdio-screenshot does not work for browser.select(Browser) (WebDriverIO multiremote)
browser.select(browser).saveViewportScreenshot('great-shot.jpg')
For example, above call errors with:
Invalid attempt to destructure non-iterable instance running TypeError: Invalid attempt to destructure non-iterable instance
The text was updated successfully, but these errors were encountered: