Hello,
I’m trying to establish a docker-image with robotframework-browser and nodejs. I’m bit puzzled what is wrong when running following sample test. At least rfbrowser init is passing when it’s run in container (debian, docker desktop with WSL2).
Same test in host-machine (win10) produced similar errors as below, but it got sorted by supplying s proxy setting. The same gotcha seem not suffice for docker-container.
npm config set https-proxy http://proxy…/
- Would you have advice what to try next ?
This kind “could not connect error” keeps repeating, with different port numbers
[ ERROR ] Calling method ‘_start_suite’ of listener ‘Browser’ failed: Could not connect to the playwright process at port 40583.
RF debug-log shows this
<_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = “failed to connect to all addresses”
debug_error_string = “{“created”:”@1621861387.280764500",“description”:“Failed to pick subchannel”,“file”:“src/core/ext/filters/client_channel/client_channel.cc”,“file_line”:5419,“referenced_errors”:[{“created”:"@1621861387.280701100",“description”:“failed to connect to all addresses”,“file”:“src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc”,“file_line”:397,“grpc_status”:14}]}"
*** Settings ***
Library Browser
*** Test Cases ***
Starting a browser with a page
New Browser chromium headless=true
New Context viewport={‘width’: 1920, ‘height’: 1080}
New Page https://marketsquare.github.io/robotframework-browser/Browser.html
Get Title == Browser
rfbrowser init completed
root@60e0252cc2ff:/home/jenkins/tests/Tests/me# robot test.robot
Test
[ ERROR ] Calling method ‘_start_suite’ of listener ‘Browser’ failed: Could not connect to the playwright process at port 40583.
[ ERROR ] Calling method ‘_start_test’ of listener ‘Browser’ failed: Could not connect to the playwright process at port 58665.
Starting a browser with a page | FAIL |
Could not connect to the playwright process at port 59053.
root@60e0252cc2ff:/home/jenkins/tests/Tests/me# nodejs --version
v14.17.0
root@60e0252cc2ff:/home/jenkins/tests/Tests/me# npm --version
6.14.13
pip list |grep robot
robotframework 4.0.1
robotframework-assertion-engine 0.0.6
robotframework-browser 5.0.0
robotframework-pabot 1.13
robotframework-pythonlibcore 2.2.1
robotframework-requests 0.9.1
robotframework-seleniumlibrary 5.1.3
robotframework-xvfb 1.2.2