Clicking element that is underneath another with Selenium

I recently ran into an issue where an element on the page was behind a static footer. In order to work around this problem, I needed to get the element into the view fully. Luckily, I could execute JavaScript to do this.

IWebElement target = this.webDriver.FindElement(byElementButton);  
((IJavaScriptExecutor)this.webDriver).ExecuteScript("arguments[0].scrollIntoView(true);", target);

I wrapped this into a static method inside the base for all page objects to be able to access it when needed. This will scroll the element into the view for Selenium to interact with it properly.