markhobson / docker-maven-chrome

Docker image for Java automated UI tests.
https://hub.docker.com/r/markhobson/maven-chrome/
Apache License 2.0
101 stars 82 forks source link

Is there a way to set SCREEN_WIDTH & SCREEN_HEIGHT when not running test in headless mode? #29

Closed mohitrathi92 closed 3 years ago

mohitrathi92 commented 3 years ago

I tried the below command,

DOCKER_IMAGE=markhobson/maven-chrome:jdk-8 docker pull $DOCKER_IMAGE docker run -t -v "$PWD":/usr/src -w /usr/src -v $HOME/.m2:/root/.m2 --network host -e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1480 $DOCKER_IMAGE mvn clean install -DsuiteFile=$testSuite

markhobson commented 3 years ago

Hi, setting the screen size using these environment variables seems to be a feature of docker-selenium, which this image doesn't inherit. What is the use-case here?

mohitrathi92 commented 3 years ago

Thanks for the confirmation.