I am using WebDriver with FireFox. I want to click on checkboxes that is currently not visible on my webpage. I am getting the error "Element is not currently visible and so may not be interacted with." As I search through Google for help, someone said that it would scroll automatically with click action. That is not the case for me.
Here is my code fragment
driver.findElement(By.name("inboundPriority")).click();
I have also tried
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("window.scrollBy(0,2000)", "");
but failed. The scrollbar/webpage won't move.
Any help would be appreciated. Thanks.