InternetExplorerOptions options = new InternetExplorerOptions();
options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
options.RequireWindowFocus = true;
options.AddAdditionalCapability("disable-popup-blocking", true);
options.EnablePersistentHover = true;
options.EnsureCleanSession = true;
options.EnableNativeEvents = false;
options.UnhandledPromptBehavior = UnhandledPromptBehavior.Accept;
options.ElementScrollBehavior = InternetExplorerElementScrollBehavior.Top;
options.IgnoreZoomLevel = true;
options.EnsureCleanSession = true;
options.AddAdditionalCapability("IE_ENSURE_CLEAN_SESSION", true);
options.AddAdditionalCapability("JAVASCRIPT_ENABLED", true);
InternetExplorerOptions options = new InternetExplorerOptions();
options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
options.RequireWindowFocus = true;
options.AddAdditionalCapability("disable-popup-blocking", true);
options.EnablePersistentHover = true;
options.EnsureCleanSession = true;
options.EnableNativeEvents = false;
options.UnhandledPromptBehavior = UnhandledPromptBehavior.Accept;
options.ElementScrollBehavior = InternetExplorerElementScrollBehavior.Top;
options.IgnoreZoomLevel = true;
options.EnsureCleanSession = true;
options.AddAdditionalCapability("IE_ENSURE_CLEAN_SESSION", true);
options.AddAdditionalCapability("JAVASCRIPT_ENABLED", true);
IJavaScriptExecutor js = (IJavaScriptExecutor)driver;
js.ExecuteScript("javascript:window.scrollBy(1119,3)"); // this is the coordinates of the element once scrolled into view
IJavaScriptExecutor clicker = (IJavaScriptExecutor)driver;
clicker.ExecuteScript("arguments[0].click();", btnsearch);
driver.ExecuteJavaScript("arguments[0].click();", btnsearch);
Actions act = new Actions(driver);
act.MoveToElement(btnsearch).SendKeys(Keys.Enter).Build().Perform();
btnsearch.Click();
<code>
IJavaScriptExecutor js = (IJavaScriptExecutor)driver;
js.ExecuteScript("javascript:window.scrollBy(1119,3)"); // this is the coordinates of the element once scrolled into view
IJavaScriptExecutor clicker = (IJavaScriptExecutor)driver;
clicker.ExecuteScript("arguments[0].click();", btnsearch);
driver.ExecuteJavaScript<object>("arguments[0].click();", btnsearch);
Actions act = new Actions(driver);
act.MoveToElement(btnsearch).SendKeys(Keys.Enter).Build().Perform();
btnsearch.Click();
</code>