Skip to content

Commit

Permalink
Use env for CDP runs
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Jul 17, 2024
1 parent ffb1461 commit 560ce2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp.Nunit/PuppeteerTestAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class PuppeteerTestAttribute : NUnitAttribute, IApplyToTest
private static TestExpectation[] _localExpectations;
private static TestExpectation[] _upstreamExpectations;
public static readonly bool IsChrome = Environment.GetEnvironmentVariable("PRODUCT") != "FIREFOX";
public static readonly bool IsCdp = Environment.GetEnvironmentVariable("PROTOCOL") == "webdriverbidi";
public static readonly bool IsCdp = Environment.GetEnvironmentVariable("PROTOCOL") == "cdp";
public static readonly HeadlessMode Headless =
string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HEADLESS_MODE")) ?
(System.Diagnostics.Debugger.IsAttached ? HeadlessMode.False : HeadlessMode.True) :
Expand Down

0 comments on commit 560ce2f

Please sign in to comment.