I have my selenium webdriver tests on EC2. Chrome --headless flag is on and job is started from Jenkins. Is there a way to watch the live UI tests on the browser window via a VNC connection from my local machine like how it's done on Selenium GRID?

I do not want to use Selenium Grid at the moment.


There are two issues you need to think about;

  1. You are running on headless mode, so there should be no visible Chrome window. You may need to disable it.

  2. If the Jenkins initiated the job; you can see the Chrome window, only if you VNC with Jenkins user, not another account/user.

  • I tried VNC option witout headless flag and here's where I am stuck at now. Any help would be really appreciated. Here's a detailed explanation of my issue. stackoverflow.com/q/63935935/4113833
    – Afsal
    Sep 20 '20 at 12:52
  • On the code side, I'm using webdriver as driver=new ChromeDriver (path): and not remotedriver(EC2 IP)/wd/hud. Was thinking of using remotedriver as next debugging step. *Please excuse the syntax, commenting from my phone.
    – Afsal
    Sep 20 '20 at 12:54
  • I see that you figured out.
    – Turcia
    Sep 21 '20 at 14:50
  • Yes, thanks for your comment, @Turicia. Turning off headless mode suggestion helped.
    – Afsal
    Sep 21 '20 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.