jerome chabrol
jerome chabrol

Reputation: 13

see firefox when executing robot test in docker

I'm using robotframework with selenium and firefox. I'm running test in a docker. But for debugging purpose I want to see sometimes what's happen on the UI.

So is there a way to get the UI of firefox launch when test are running in docker.

thanks

Upvotes: 1

Views: 97

Answers (1)

Shubham Jain
Shubham Jain

Reputation: 17553

You can use VNC to see what is actually happening over docker. It's like remote access where you can see everything on docker image

Download VNC viewer :

https://www.realvnc.com/en/connect/download/viewer/

Some tutorial :

Click Here

Article

https://medium.com/@shivam.somani09/running-automated-test-cases-on-vnc-viewer-using-docker-16656c3d1d87

OR if you don't want VNC

You can take screenshot if you just want an image on a particular place. You can also use driver.getPageSource(); to get the HTML code

Upvotes: 4

Related Questions