Comments (5)
Any tips if I still get same error after following troubleshooting and making sure there is enough of a pause in between?
from webdriverio.
@darrylb-github I think I found the problem. The docker-compose.yml file in Git is missing a necessary environment variable for each of the two browser containers. I debugged the Selenium scripts to find where they were failing, which led me to this. So if your problem was in running the example, that's why. I'll write up an issue for it and submit a PR.
from webdriverio.
@MichalDulemba I updated the example docker-compose.yml
file and added a Troubleshooting section. Take a look and let me know if you need something else.
Thanks.
from webdriverio.
Thanks a lot. Works!
from webdriverio.
Like @darrylb-github, I'm having this same issue. Neither of the two workarounds solved my problem. One workaround doesn't work, because there is no bash shell in the container (see #11). And the other still gives the "Error forwarding the new session" error.
Starting webdriverio_hub_1 ... done
Starting webdriverio_chrome_1 ... done
Starting webdriverio_firefox_1 ... done
[19:27:50] COMMAND POST "/wd/hub/session"
[19:27:50] DATA {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"browserName":"chrome","loggingPrefs":{"browser":"ALL","driver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"4.14.1","name":"webdriverio"}}}
[19:27:50] COMMAND POST "/wd/hub/session"
[19:27:50] DATA {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"browserName":"firefox","loggingPrefs":{"browser":"ALL","driver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"4.14.1","name":"webdriverio"}}}
ERROR: Error forwarding the new session Empty pool of VM for setup Capabilities {browserName: chrome, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, loggingPrefs: org.openqa.selenium.logging..., requestOrigins: {name: webdriverio, url: http://webdriver.io, version: 4.14.1}, rotatable: true}
chrome
at new RuntimeError (/install/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:143:12)
at Request._callback (/install/node_modules/webdriverio/build/lib/utils/RequestHandler.js:318:39)
at Request.self.callback (/install/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/install/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/install/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
ERROR: Error forwarding the new session Empty pool of VM for setup Capabilities {browserName: firefox, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, loggingPrefs: org.openqa.selenium.logging..., requestOrigins: {name: webdriverio, url: http://webdriver.io, version: 4.14.1}, rotatable: true}
firefox
at new RuntimeError (/install/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:143:12)
at Request._callback (/install/node_modules/webdriverio/build/lib/utils/RequestHandler.js:318:39)
at Request.self.callback (/install/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/install/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/install/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
from webdriverio.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriverio.