File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,7 @@ public Screenshot GetFullPageScreenshot()
393
393
/// Creates a session to communicate with a browser using the Chromium Developer Tools debugging protocol.
394
394
/// </summary>
395
395
/// <returns>The active session to use to communicate with the Chromium Developer Tools debugging protocol.</returns>
396
+ [ Obsolete ( "CDP support for Firefox is deprecated and will be removed in future versions. Please switch to WebDriver BiDi." ) ]
396
397
public DevToolsSession GetDevToolsSession ( )
397
398
{
398
399
return GetDevToolsSession ( new DevToolsOptions ( ) { ProtocolVersion = FirefoxDevToolsProtocolVersion } ) ;
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ public ReadOnlyCollection<IWebElement> FindElementsByCssSelector(string cssSelec
428
428
/// <returns>The active session to use to communicate with the Developer Tools debugging protocol.</returns>
429
429
public DevToolsSession GetDevToolsSession ( )
430
430
{
431
- if ( this . Capabilities . GetCapability ( CapabilityType . BrowserName ) == "firefox" )
431
+ if ( this . Capabilities . GetCapability ( CapabilityType . BrowserName ) is "firefox" )
432
432
{
433
433
if ( _logger . IsEnabled ( LogEventLevel . Warn ) )
434
434
{
You can’t perform that action at this time.
0 commit comments