Skip to content

Issue running wdio tests (v8) in a docker container on CI #11000

Answered by vincent-lyon
vincent-lyon asked this question in Q&A
Discussion options

You must be logged in to vote

So, it seems it was a Selenium issue. I tried to change my base image from FROM node:16.19.0-buster to FROM circleci/node:16-browsers and the driver could start.

In the CircleCI image, the Selenium jar is downloaded and put in /usr/local/bin/

As I don't need everything in the CircleCI image, I still use the node one, but I added the commands to get the Selenium jar.
For Java, I used to install it with COPY --from=eclipse-temurin:11 but it didn't seem to work here, so I installed it with the apt command found at L25.

I also had to add the chrome dependencies described in the CircleCI Dockerfile (at L36).

I don't know about Java, but is there a possibility that WDIO could take care of downl…

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@christian-bromann
Comment options

@christian-bromann
Comment options

@vincent-lyon
Comment options

@vincent-lyon
Comment options

Answer selected by vincent-lyon
Comment options

You must be logged in to vote
3 replies
@christian-bromann
Comment options

@pawankondavatysonos
Comment options

@christian-bromann
Comment options

Comment options

You must be logged in to vote
2 replies
@mr-possible
Comment options

@umer-ali-khan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants