Skip to content

Commit ea6fef4

Browse files
committed
[dotnet] Trim away CDP when publishing AOT apps
1 parent 42d7dee commit ea6fef4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

dotnet/src/webdriver/WebDriver.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ protected WebDriver(ICommandExecutor executor, ICapabilities capabilities)
7676
}
7777

7878
this.elementFactory = new WebElementFactory(this);
79-
this.network = new NetworkManager(this);
8079
this.registeredCommands.AddRange(DriverCommand.KnownCommands);
8180

8281
if ((this as ISupportsLogs) != null)
@@ -216,10 +215,7 @@ public virtual IFileDetector FileDetector
216215
}
217216
}
218217

219-
internal INetwork Network
220-
{
221-
get { return this.network; }
222-
}
218+
internal INetwork Network => this.network ??= new NetworkManager(this);
223219

224220
/// <summary>
225221
/// Gets or sets the factory object used to create instances of <see cref="WebElement"/>

0 commit comments

Comments
 (0)