diff --git a/dotnet/src/webdriver/DriverOptions.cs b/dotnet/src/webdriver/DriverOptions.cs
index 22d026e5e7ae9..2c34844ffcbd1 100644
--- a/dotnet/src/webdriver/DriverOptions.cs
+++ b/dotnet/src/webdriver/DriverOptions.cs
@@ -22,7 +22,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
-using System.Text.Json;
namespace OpenQA.Selenium
{
@@ -390,15 +389,6 @@ public void SetLoggingPreference(string logType, LogLevel logLevel)
this.loggingPreferences[logType] = logLevel;
}
- ///
- /// Returns a string representation of this .
- ///
- /// A string representation of this .
- public override string ToString()
- {
- return JsonSerializer.Serialize(this.ToDictionary(), new JsonSerializerOptions { WriteIndented = true });
- }
-
///
/// Returns the current options as a .
///
diff --git a/dotnet/src/webdriver/Internal/ReturnedCapabilities.cs b/dotnet/src/webdriver/Internal/ReturnedCapabilities.cs
index 019e63f469ae3..3bac423108923 100644
--- a/dotnet/src/webdriver/Internal/ReturnedCapabilities.cs
+++ b/dotnet/src/webdriver/Internal/ReturnedCapabilities.cs
@@ -21,7 +21,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
-using System.Text.Json;
namespace OpenQA.Selenium.Internal
{
@@ -147,14 +146,5 @@ public Dictionary ToDictionary()
// we might want to copy/clone it instead.
return this.capabilities;
}
-
- ///
- /// Return a string of capabilities being used
- ///
- /// String of capabilities being used
- public override string ToString()
- {
- return JsonSerializer.Serialize(this.capabilities, new JsonSerializerOptions { WriteIndented = true });
- }
}
}
diff --git a/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs b/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs
index 685d51363e1f9..2816439866c27 100644
--- a/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs
+++ b/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs
@@ -21,7 +21,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
-using System.Text.Json;
namespace OpenQA.Selenium
{
@@ -252,15 +251,6 @@ public Dictionary ToDictionary()
return capabilitiesDictionary;
}
- ///
- /// Return a string representation of the remote session settings to be sent.
- ///
- /// String representation of the remote session settings to be sent.
- public override string ToString()
- {
- return JsonSerializer.Serialize(this.ToDictionary(), new JsonSerializerOptions { WriteIndented = true });
- }
-
internal DriverOptions GetFirstMatchDriverOptions(int firstMatchIndex)
{
if (firstMatchIndex < 0 || firstMatchIndex >= this.firstMatchOptions.Count)