C# Selenium - OpenQA.Selenium.ElementNotInteractableException - Element could not be scrolled into view

C# Selenium - OpenQA.Selenium.ElementNotInteractableException - Element could not be scrolled into view

element could not be scrolled into view selenium python
selenium scroll to element
firefox selenium scroll into view
type=radio could not be scrolled into view
nightwatch could not be scrolled into view
selenium driver scroll into view
java selenium bring element into view
scroll and click in selenium

I am currently trying to click an element on a webpage using selenium with C#. I need to click a Div element based on a child element that has the text 'Test App'.

Here is the HTML snippet for the object;

<div class="application_items">
    <a href="www.google.com" target="_self">
        <div class="homePageItems">
           <div class="small" style="display: block;">
               <div class="AppLabel">Test App</div>
           </div>
           <div class="big" style="display: none;">
               <div class="AppLabel">Test App</div>
                   <div class="underTitle"></div>
           </div>
       </div>
   </a></div>

And here is my C# code to try access the first appearance of the app name 'Test App';

Element(By.XPath("//div[@class='small']/*[text()[contains(., 'Test App')]]"));

When this runs, I get an error;

OpenQA.Selenium.ElementNotInteractableException: 'Element <div class="AppLabel"> could not be scrolled into view'

I thought the error may be because the program was accessing the second occurence of 'App Test', so I have tried setting the div with the class 'big' visible (display: block;) with the following code, but it doesn't seem to help;

IWebElement elem = Driver.FindElement(By.XPath("//div[@class='small']/div[text()[contains(., 'Test App')]]"));

String js = "arguments[0].style.height='auto'; arguments[0].style.display='block';";

((IJavaScriptExecutor)Driver).ExecuteScript(js, elem);

I apologise if something similar to this has been asked before, I spent a while browsing similar subjects but didn't find what I needed. If anyone could please point me in the right direction, that would be much appreciated.


You could get all the elements, filter them down to only the visible ones, and then click the first (or whatever) one.

IReadOnlyCollection<IWebElement> elems = Driver.FindElements(By.XPath("//div[.='Test App']")).Where(e => e.Displayed).ToList();
elems.ElementAt(0).Click();

It's also possible that you need to add a wait to make sure that part of the page has loaded.

Webdriver Firefox "Element could not be scrolled into view , A workaround that works for me so far is that I use a 'fake' tr : Find the tr I want to click; Find a td that belongs to that tr and click on it. it works. This bug is reported  A traceback shows that the exception is thrown by selenium itself, which led me to the issue section of selenium instead of Geb. Workaround Using javascript to perform the click works flawlessly as a workaround but is not very desirable as it leads to ugly code and puts all tests into a briddle state.


Element could not be scrolled into view - Web Testing, But, when trying to execute the 'Click' event, I am getting the following error. Root cause: org.openqa.selenium.ElementNotInteractableException:  There are two scenarios here. One is that the element is scrolled into view as best as possible, but the element is so big that the calculated center point of the element is still outside the browser view port. This is the case reported in the original issue.


You can siply use by using classname, Correct the code as I dont know the C sharp very well

driver.FindElement(By.ClassName("AppLabel")).Click();

Also you can use xpath

driver.FindElement(By.XPath("//div[@class='small']/div[text()='Test App'])).Click();

How to fix “could not be scrolled into view” problem with drop down , New comments cannot be posted and votes cannot be cast. Sort by Can you use selenium/python to input elements from excel spreadsheet into a browser? Unfortunately Selenium does not have inbuilt method which allow us to scroll into view but it does not mean we cannot scroll. We can scroll into view in Selenium using JavaScript executor. You must be wondering now Java Script will help us in this case.


IReadOnlyCollection<IWebElement> elems = Driver.FindElements(By.XPath("//div[.='Test App']")).Where(e => e.Displayed).ToList();
elems.ElementAt(0).Click();

I am using this its perfectly working for me

ElementNotInteractableException: Element could not be scrolled , Not sure if we should fix it for seleniumClickElement. Element <a id="link" href=​"https://mozilla.org"> could not be scrolled into view Given that the paragraph  Originally reported on Google Code with ID 3075. Upgraded to selenium server 2.15.0. Tests have been working through 2.14.0. Now running the same tests give the problem for some elements: java.lang.AssertionError: Element cannot be scrolled into view:[URL] Command duration or timeout: 10 milliseconds Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:56:25' System info: os


Message: Element <option> could not be scrolled into view while , Here is my issue: When I try to choose an option, it gives me the following error: selenium.common.exceptions.ElementNotInteractableException  Solution: Selenium 2 tries to scroll to the element and then click on it. This is because Selenium 2 will not interact with an element unless it thinks that it is visible. Be aware that scrollIntoView is not a selenium method is a DOM method and only scrolls the element into view. If scrollIntoView cannot scroll the element into view,


Selenium webdriver "Element cannot be scrolled into view", If you are trying to write a functional test with the Selenium webdriver, you might occasionally run into this error :- [js]Error: Failed to execute. Meta - OS: Windows 2016 Selenium Version: 3.8.1 Browser: Firefox 59.0.1 Since Firefox version 48, Mozilla requires all add-ons to be signed. Until recently, Firefox support in Selenium was exclusively provided by an add-on.


Element cannot be scrolled into view:[object HTMLInputElement , Element cannot be scrolled into view:[object HTMLInputElement] #3075. Open not clickable. The element is supposed to act like a radio button. org.openqa.​selenium.interactions. I have this issue with 2.18 C# at IE9, Win7.