Bird
0
0

Which command is used to start a Selenium standalone Chrome container for test execution?

easy📝 Conceptual Q2 of 15
Selenium Python - CI/CD Integration
Which command is used to start a Selenium standalone Chrome container for test execution?
Adocker push selenium/standalone-chrome
Bdocker build selenium/standalone-chrome
Cdocker stop selenium/standalone-chrome
Ddocker run -d -p 4444:4444 selenium/standalone-chrome
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to run a container

    To start a container, 'docker run' is used with options for detached mode and port mapping.
  2. Step 2: Match the command to Selenium standalone Chrome image

    The correct image name is 'selenium/standalone-chrome' and port 4444 is exposed for WebDriver.
  3. Final Answer:

    docker run -d -p 4444:4444 selenium/standalone-chrome -> Option D
  4. Quick Check:

    Start container = docker run with image and port [OK]
Quick Trick: Use 'docker run -d -p 4444:4444' to start Selenium container [OK]
Common Mistakes:
  • Using 'docker build' instead of 'docker run' to start container
  • Confusing 'docker stop' with starting a container
  • Using 'docker push' which uploads images, not runs containers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Python Quizzes