diff --git a/dotnet/src/webdriver/BiDi/BiDi.cs b/dotnet/src/webdriver/BiDi/BiDi.cs index f7acc0640b5a0..50d0b4e1bf736 100644 --- a/dotnet/src/webdriver/BiDi/BiDi.cs +++ b/dotnet/src/webdriver/BiDi/BiDi.cs @@ -60,12 +60,12 @@ public static async Task ConnectAsync(string url) return bidi; } - public Task CreateBrowsingContextAsync(Modules.BrowsingContext.BrowsingContextType type, Modules.BrowsingContext.CreateOptions? options = null) + public Task CreateContextAsync(Modules.BrowsingContext.BrowsingContextType type, Modules.BrowsingContext.CreateOptions? options = null) { return BrowsingContextModule.CreateAsync(type, options); } - public Task> GetBrowsingContextTreeAsync(Modules.BrowsingContext.GetTreeOptions? options = null) + public Task> GetTreeAsync(Modules.BrowsingContext.GetTreeOptions? options = null) { return BrowsingContextModule.GetTreeAsync(options); } @@ -82,22 +82,22 @@ public async ValueTask DisposeAsync() _transport?.Dispose(); } - public Task OnBrowsingContextCreatedAsync(Func handler, BrowsingContextsSubscriptionOptions? options = null) + public Task OnContextCreatedAsync(Func handler, BrowsingContextsSubscriptionOptions? options = null) { return BrowsingContextModule.OnContextCreatedAsync(handler, options); } - public Task OnBrowsingContextCreatedAsync(Action handler, BrowsingContextsSubscriptionOptions? options = null) + public Task OnContextCreatedAsync(Action handler, BrowsingContextsSubscriptionOptions? options = null) { return BrowsingContextModule.OnContextCreatedAsync(handler, options); } - public Task OnBrowsingContextDestroyedAsync(Func handler, BrowsingContextsSubscriptionOptions? options = null) + public Task OnContextDestroyedAsync(Func handler, BrowsingContextsSubscriptionOptions? options = null) { return BrowsingContextModule.OnContextDestroyedAsync(handler, options); } - public Task OnBrowsingContextDestroyedAsync(Action handler, BrowsingContextsSubscriptionOptions? options = null) + public Task OnContextDestroyedAsync(Action handler, BrowsingContextsSubscriptionOptions? options = null) { return BrowsingContextModule.OnContextDestroyedAsync(handler, options); }