I am facing this problem on Firefox v.59, Selenium 3.11.0. I just click on an element, like this:
webDriver.findElement(By.id("row_0")).click();
and I get exception:
org.openqa.selenium.ElementNotInteractableException: Element <tr id="row_0" class="row_0 txtSearchColor1"> could not be scrolled into view
I already try with JavascriptExecutor
like this:
js.executeScript("arguments[0].scrollIntoView(true);", webDriver.findElement(By.id("row_0")));
js.executeScript("arguments[0].click();", webDriver.findElement(By.id("row_0")));
but nothing works, it does nothing. This is element HTML:
<tr id="row_0" class="row_0 txtSearchColor1">
<td></td>
<td></td>
<td></td>
</tr>
Note that, all the solutions work normally on Chrome (v65) and this element is visible. Does anyone have the same problem and a solution? Thanks
js.executeScript("arguments[0].scrollIntoView(false);", element)
; , but it did nothing, it just bypassed the block, no exception. As you can see my discussion below, I tried with both whole row (throw exception) or one column (just bypassed), but nothing worked