From 3e02303e684d82842f9f6586860b9e6b9e93805c Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Sat, 14 Sep 2024 22:00:49 +0300 Subject: [PATCH] [dotnet] [bidi] Simplify browsing context to be just context Following to spec, it is implicitly clear that Context is exactly BrowsingCoontext. For RealmContext and UserContext we use fully qualified name. --- dotnet/src/webdriver/BiDi/BiDi.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); }