Cannot use Firefox on MS Hosted Azure DevOps Pipelines agent

James Baxter 21 Reputation points
2022-03-29T10:43:13.49+00:00

Using the MS Hosted agent ubuntu-20.04, I'm getting the following error with Firefox. Any suggestions?

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
Error: no DISPLAY environment variable specified

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:124)
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,104 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful