Platform MajorVersion Property WebDriver
Gets the major version of the platform operating system.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public int MajorVersion { get; }
See Also