Skip to content

Commit 3cccb3c

Browse files
committed
Update BrowserManager.cs
1 parent ea4499e commit 3cccb3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Shared/BrowserTesting/src/BrowserManager.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ private async Task InitializeAsync()
4848
async Task InitializeCore()
4949
{
5050
// Work around weird driverExecutable lookup logic
51-
var helixDirectory = Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT");
52-
if (string.IsNullOrEmpty(helixDirectory))
51+
var driverPath = Environment.GetEnvironmentVariable("PLAYWRIGHT_DRIVER_PATH");
52+
if (string.IsNullOrEmpty(driverPath))
5353
{
54-
var driverPath = Path.Combine(helixDirectory,
55-
RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? "playwright.sh" : "playwright.cmd");
5654
Playwright = await PlaywrightSharp.Playwright.CreateAsync(_loggerFactory, driverExecutablePath: driverPath /*, debug: "pw:api"*/);
5755
}
5856
else

0 commit comments

Comments
 (0)