How can I get container ID in order to execute command in docker container?

176 Views Asked by At

I only seem able to use getContainerId(WebDriver) during the first test. Every subsequent test returns empty e.g. getContainerId(SelenideDriver.getWebdriver)

Ideally I need to be able to execute commands in the docker browser container (for importing certificates etc).

Is this expected or am I doing something wrong?

Thanks.

1

There are 1 best solutions below

1
Somethingwhatever On
docker ps -a 

This should give you the container id