Run Selenium in Docker on Google Cloud Build

Wendy
2 min readFeb 3, 2021

First, you need to use RemoteWebDriver, so that our test can talk to Selenium Hub, then your Selenium hub will talk to your browser, here we call them nodes. Eg. Chrome will have a node, Firefox will have a node.

To achieve this, you need to use docker-compose, which allow your containers talks to each other easily.

Basically, you need at least 3 containers.
1. Selenium hub
2. Selenium node, if you want to have multiple browser, need more node.
3. Your test, which is kind of node.

--

--