Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions dotnet/src/webdriver/BiDi/WebDriver.Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
// under the License.
// </copyright>

using OpenQA.Selenium.BiDi.Modules.BrowsingContext;
using System;
using System.Threading.Tasks;

Expand All @@ -44,13 +43,4 @@ public static async Task<BiDi> AsBiDiAsync(this IWebDriver webDriver)

return bidi;
}

public static async Task<BrowsingContext> AsBiDiContextAsync(this IWebDriver webDriver)
{
var bidi = await webDriver.AsBiDiAsync();

var currentBrowsingContext = new BrowsingContext(bidi, webDriver.CurrentWindowHandle);

return currentBrowsingContext;
}
}
5 changes: 3 additions & 2 deletions dotnet/test/common/BiDi/BiDiFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ public async Task BiDiSetUp()

driver = EnvironmentManager.Instance.CreateDriverInstance(options);

context = await driver.AsBiDiContextAsync();
bidi = context.BiDi;
bidi = await driver.AsBiDiAsync();

context = (await bidi.BrowsingContext.GetTreeAsync())[0].Context;
}

[TearDown]
Expand Down
Loading