Selenium WebDriver - Chrome - C# - Unable to launch selenium browser in Incognito Mode as a maximised browser
<p>I have a Selenium suite which has 150 test cases. The test has to run in Incognito mode in Chrome Browser. </p>

<p>I am able to launch the browser in incognito Mode. But the issue is the browser is not getting maximized ( say for 10 test cases and for remaining 140 test cases the browser launches in maximized mode) , though there is a code to maximize the browser. </p>

<p>As a result of this, some of the test fails ( All 10 test ).</p>

<p>Below is my code</p>

<pre><code>                desiredCapabilities = DesiredCapabilities.Chrome();
                var options = new ChromeOptions();
                options.AddArgument(@"--incognito");
                options.AddArgument("--start-maximized");
                desiredCapabilities.SetCapability(ChromeOptions.Capability, options);
                webDriver = new MyWebDriver(new Uri(gridHubURL), options.ToCapabilities(),TimeSpan.FromSeconds(ApplicationConfiguration.RemoteDriverTimeOutValue),testContext);
                break;
</code></pre>

<p>Is there a way to ensure that the browser always (100%) launches in maximised mode.</p>

<p>The click operation fails when the browser is not maximised.</p>

<p><strong>System.InvalidOperationException: unknown error: Element is not clickable at point (886, 466). Other element would receive the click:</strong></p>

<p>For this reason, I want to run in maximised mode. In maximised mode, I am not getting this error. Please help .</p>

<p>Thanks</p>