Search⌘ K
AI Features

Display the Screenshots

Explore how to navigate Docker containers and display Selenium test screenshots using commands like ls and cd. This lesson helps you manage test artifacts inside containers while preparing for CI/CD integration.

Continuing from the last lesson, with the container being started and bash active, the screenshots can be displayed easily.

Display all files from the container root folder

Use the ls command. Both the src and target folders are displayed.

Shell
ls
bin
command.sh
Dockerfile
home
lib64
mnt
pom.xml
root
sbin
srv
target <-------
usr
boot
dev
etc
lib
media
opt
proc
run
src <-------
sys
tmp
var

Change the current folder to target

Use the cd command:

Shell
cd target

Display all files and folders from the target

...