I upgraded Selenium Web Driver and Support to v3.14. Noticed that the following code showed the error.
DesiredCapabilities capabilities; --deprecated
capabilities = DesiredCapabilities.Chrome(); --has the error
capabilities.SetCapability(CapabilityType.Platform, new Platform(PlatformType.Windows));
Uri uri = new Uri(hub url);
_driver = new RemoteWebDriver(uri, capabilities, TimeSpan.FromSeconds(120));
From the class RemoteWebDriver in OpenQA.Selenium.Remote, it still has the ICapabilities parameter.
public RemoteWebDriver(Uri remoteAddress, ICapabilities desiredCapabilities, TimeSpan commandTimeout)
After posting the question in stackflow, one nice guy replied. I created a new branch , updated the following code , set up the private branch in bamboo and ran BVTs in the Selenium Grid. The tests passed.
ChromeOptions options = new ChromeOptions();
options.PlatformName = PlatformType.Windows.ToString();
Uri uri = new Uri(hub url);
_driver = new RemoteWebDriver(uri, options.ToCapabilities(), TimeSpan.FromSeconds(120));