Not able to run scripts on Azure ADO pipeline getting failed to create driver exception on local it is working fine, issue on pipeline only

66 views Asked by At

I am getting this below exception when I run pipeline on azure ado and automation tool is playwright

> Task :testJsonConfig
[gradle]: java.lang.RuntimeException: Failed to create driver
[gradle]:   at com.microsoft.playwright.impl.driver.Driver.createAndInstall(Driver.java:105)
[gradle]:   at com.microsoft.playwright.impl.driver.Driver.ensureDriverInstalled(Driver.java:57)
[gradle]:   at com.microsoft.playwright.impl.PlaywrightImpl.createImpl(PlaywrightImpl.java:45)
[gradle]:   at com.microsoft.playwright.impl.PlaywrightImpl.create(PlaywrightImpl.java:35)
[gradle]:   at com.microsoft.playwright.Playwright.create(Playwright.java:110)
[gradle]:   at com.microsoft.playwright.Playwright.create(Playwright.java:114)
[gradle]:   at Regression_Suite.SmokeCheckAllOem$BrowserTest.run(SmokeCheckAllOem.java:74)
[gradle]:   at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

On my local machine, everything is working perfectly fine, I do not know what is the issue with azure ADO pipeline. I tried to generate lib folder to keep all jar that we can use for pipeline execution, that didn't help either

Is it related to the azure machine that we have or any library that I need to provide to create the browser instances?

It also gives error that GLIBC 2.27 version not found required by Playwright

0

There are 0 answers