I have all my setup on AWS EC2 and I'm using Jenkins for my test jobs. It seems pretty difficult to install chrome in AWS so that easiest option for me is to get the docker chrome for my tests. I'm using this docker image and running the container using the command docker run -p 3000:3000 -d browserless/chrome
.
As per the TestCafe documentation, I'm using the remote browser connection to trigger my tests. I'm not getting any error but looks like the connection hangs and here is the output:
+ node awsrunner.js
http://localhost:1337/browser/connect/6M9cgTu
<<spinning wheel here>>
I'm not sure how do I establish a connection with the headless chrome through TestCafe so that I can run my tests.