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()
393393 /// Creates a session to communicate with a browser using the Chromium Developer Tools debugging protocol.
394394 /// </summary>
395395 /// <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." ) ]
396397 public DevToolsSession GetDevToolsSession ( )
397398 {
398399 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
428428 /// <returns>The active session to use to communicate with the Developer Tools debugging protocol.</returns>
429429 public DevToolsSession GetDevToolsSession ( )
430430 {
431- if ( this . Capabilities . GetCapability ( CapabilityType . BrowserName ) == "firefox" )
431+ if ( this . Capabilities . GetCapability ( CapabilityType . BrowserName ) is "firefox" )
432432 {
433433 if ( _logger . IsEnabled ( LogEventLevel . Warn ) )
434434 {
You can’t perform that action at this time.
0 commit comments