-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dotnet] Added function to enable halting targets until runtime.runIf…
…WaitingForDebugger is invoked (#13330) * Use .GetType() instead of typeof() for determining the response type of a command. typeof() determines the type compile time. * Duplicated TryGetCommandResponseType function * Added function to DevToolsSession.cs to enable waiting for new targets until runtime.runIfWaitingForDebugger is invoked. * Fix copy paste issue * Moved WaitForDebuggerOnStart function to DevToolsOptions class. * Refactored DevToolsOptions usage to remove redundant functions from interface. Marked old functions with only protocol version as obsolete. * Refactor to remove duplicate code for auto detecting ProtocolVersion. * Fixed comments. --------- Co-authored-by: Nikolay Borisenko <[email protected]>
- Loading branch information
1 parent
4b6af2e
commit f7fd6d3
Showing
12 changed files
with
257 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// <copyright file="DevToolsOptions.cs" company="WebDriver Committers"> | ||
// Licensed to the Software Freedom Conservancy (SFC) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The SFC licenses this file | ||
// to you under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// </copyright> | ||
|
||
namespace OpenQA.Selenium.DevTools | ||
{ | ||
/// <summary> | ||
/// Contains options configuring the DevTools session. | ||
/// </summary> | ||
public class DevToolsOptions | ||
{ | ||
/// <summary> | ||
/// Enables or disables waiting for the debugger when creating a new target. By default WaitForDebuggerOnStart is disabled. | ||
/// If enabled, all targets will be halted until the runtime.runIfWaitingForDebugger is invoked. | ||
/// </summary> | ||
public bool WaitForDebuggerOnStart { get; set; } | ||
/// <summary> | ||
/// The specific version of the Developer Tools debugging protocol to use. | ||
/// If left NULL the protocol version will be determined automatically based on the browser version. | ||
/// </summary> | ||
public int? ProtocolVersion { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.