[dotnet] allow disabling build check between chromium browser and driver
@@ -35,6 +35,7 @@ public abstract class ChromiumDriverService : DriverService
private string portServerAddress = string.Empty;
private string whitelistedIpAddresses = string.Empty;
private int adbPort = -1;
+ private bool disableBuildCheck;
private bool enableVerboseLogging;
private bool enableAppendLog;
@@ -86,6 +87,17 @@ public int AndroidDebugBridgePort
set { this.adbPort = value; }
}
+ /// <summary>
+ /// Gets or sets a value indicating whether to skip version compatibility check
+ /// between the driver and the browser.
+ /// Defaults to <see langword="false"/>.
+ /// </summary>
+ public bool DisableBuildCheck
+ {
+ get { return this.disableBuildCheck; }
+ set { this.disableBuildCheck = value; }
+ }
+
/// <summary>
/// Gets or sets a value indicating whether to enable verbose logging for the ChromeDriver executable.
/// Defaults to <see langword="false"/>.
@@ -135,6 +147,11 @@ protected override string CommandLineArguments
argsBuilder.Append(" --silent");
}
+ if (this.disableBuildCheck)
+ {
+ argsBuilder.Append(" --disable-build-check");
+ }
+
if (this.enableVerboseLogging)
{
argsBuilder.Append(" --verbose");
