Skip to content

Commit 50a4ecf

Browse files
committed
Return back interface method
1 parent d309625 commit 50a4ecf

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

dotnet/src/webdriver/DevTools/IDevTools.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ public interface IDevTools
4040
[RequiresDynamicCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
4141
DevToolsSession GetDevToolsSession();
4242

43+
/// <summary>
44+
/// Creates a session to communicate with a browser using a specific version of the Developer Tools debugging protocol.
45+
/// </summary>
46+
/// <param name="options">The options for the DevToolsSession to use.</param>
47+
/// <returns>The active session to use to communicate with the Developer Tools debugging protocol.</returns>
48+
/// <exception cref="ArgumentNullException">If <paramref name="options"/> is <see langword="null"/>.</exception>
49+
[RequiresUnreferencedCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
50+
[RequiresDynamicCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
51+
DevToolsSession GetDevToolsSession(DevToolsOptions options);
52+
4353
/// <summary>
4454
/// Closes a DevTools session
4555
/// </summary>

dotnet/src/webdriver/UserAgent.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using System;
21-
2220
namespace OpenQA.Selenium.DevTools;
2321

2422
/// <summary>

0 commit comments

Comments
 (0)