0

The issue is when I try to run a test with selenium in linux, the chrome ui does not appear, although I can see signs that the browser is active like the location where the browser should be getting getting laggy and my code reaching its checkpoints successfully. Only issue is I never see chrome ui. This only happens in ubuntu, the code runs fine on windows and mac.

Also, headless chrome is not active.

Any help will be greatly appreciated, thank you.

8
  • To be honest I've no idea what's going on. Commented Jun 28, 2022 at 12:59
  • Selenium test starts, chrome window is not visible. Code still works and completes its task, only the chrome window is not visible. Commented Jun 28, 2022 at 13:22
  • How does it start? You're omitting all the details. It doesn't start here. I need to run Chrome, click the address bar, type a URL, hit enter. Your question must contain enough info to replicate or understand your issue from start to finish. Commented Jun 28, 2022 at 13:47
  • Selenium starts the browser. When selenium starts chrome, the browser window should be displayed but instead I get no visible window. The code runs fine and completes its test accordingly, meaning the selenium browser is running but the window is simply not displaying. Commented Jun 28, 2022 at 14:13
  • what is your specific question? Commented Jun 28, 2022 at 15:21

1 Answer 1

0

The most likely reason the Chrome UI will not display on Linux would be because the headless option is used. Check your code and remove something like the following line and it should display the UI.

options.addArguments("--headless");
2
  • 1
    The OP explicitly said “headless chrome is not active.” Commented Jan 4 at 5:24
  • for now it is active on selenium version 4.27.0, however, it is deprecated. Using headless is the only way I can find to run selenium chrome/firefox on tomcat. The recommendation is to move to BiDi. Commented Jan 8 at 16:52

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.