OpenQA.Selenium.ElementNotInteractableException : element not interactable

Freyre Gonzalez

i was doing some test and when i run a test with a searcher that i already work for and this error appear

System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
  ----> OpenQA.Selenium.ElementNotInteractableException : element not interactable

then i tried to run a test that i knew that worked and when it was time to use the searcher, the same error appear, it's kinda weird because i don't see any diference in the HTML code, and the searcher does work if i enter to the page manually.

this is my code to manipulate the searcher:

[FindsBy(How = How.CssSelector, Using = "input")]
private IWebElement buscadorConfig;

public ConfigurationUsuario buscarTabla(string input_search)
{
       buscadorConfig.SendKeys(input_search);
       return new ConfigurationUsuario(driver);
}

Here is an example of any test that use it:

        usuario.clickConfiguration();
        System.Threading.Thread.Sleep(2000);
        
        configuracion.buscarTabla("041097");
        System.Threading.Thread.Sleep(2000);

And this is the HTML code for the searcher:

<div id="table_filter" class="dataTables_filter">
<label>Search:<input type="search" class="" placeholder="" aria-controls="table"></label>
</div>

To be honest i don't know why all of a sudden the searcher stop working in my test script, i have like 10 test that use it and know none of them works, i literally change anything , i don't know if the devs did but i hope you guys can help me.

DebanjanB

You can use a more canonical Locator Strategy as follows:

[FindsBy(How = How.CssSelector, Using = "input[aria-controls='table'][type='search']")]
private IWebElement buscadorConfig;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Element not interactable error clicking on Google Search button on Google homepage using Selenium Python

From Dev

org.openqa.selenium.NoSuchElementException: Unable to locate element

From Dev

ClassNotFoundException org.openqa.selenium.WebDriver

From Dev

org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

From Dev

org.openqa.selenium.remote.SessionNotFoundException for ChromeDriver

From Dev

python selenium - Element is not currently interactable and may not be manipulated

From Dev

How to resolve org.openqa.selenium.WebDriverException?

From Dev

org.openqa.selenium.InvalidSelectorException - [object Text]. It should be an element

From Dev

Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element

From Dev

org.openqa.selenium.ElementNotVisibleException: element not interactable while trying to click an element through selenium

From Dev

Exception in thread "main" org.openqa.selenium.NoSuchElementException: When trying to select an element from a pop-up using selenium

From Dev

org.openqa.selenium.NoSuchElementException: Returned node (null) was not a DOM element when trying to locate card-fields-iframe by CssSelector

From Dev

element not interactable for the Gmail password field Selenium WebDriver using java

From Dev

ElementNotInteractableException: element not interactable error while trying to search for stock on www.finanzen.net using Selenium and Python

From Dev

element not interactable exception in selenium web automation

From Dev

org.openqa.selenium.ElementClickInterceptedException: element click intercepted error using Selenium and Java in headless mode

From Dev

Selenium Fluent Wait Implementation in the code still gives "org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element:"

From Dev

OpenQA.Selenium.Support.UI.UnexpectedTagNameException : Element should have been select but was "title" c#

From Dev

OpenQA.Selenium.ElementClickInterceptedException : element click intercepted: Element <button class="button" > is not clickable at point (x,y)

From Dev

Selenium Element not interactable exception- How to overcome this?

From Dev

element not interactable: element has zero size- Java Selenium

From Dev

org.openqa.selenium.NoSuchElementException

From Dev

Protractor - fields present but not visible - Element is not currently interactable and may not be manipulated

From Dev

Unable to locate element: org.openqa.selenium.NoSuchElementException

From Dev

org.openqa.selenium.InvalidSelectorException - [object Text]. It should be an element

From Dev

InvalidElementStateException on element that is visible and interactable

From Dev

org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document when tried to enter number

From Dev

Selenium Java - ElementNotInteractableException upon trying to click a link

From Dev

org.openqa.selenium.StaleElementReferenceException: element is not attached to the page document while iterating through a List

Related Related

  1. 1

    Element not interactable error clicking on Google Search button on Google homepage using Selenium Python

  2. 2

    org.openqa.selenium.NoSuchElementException: Unable to locate element

  3. 3

    ClassNotFoundException org.openqa.selenium.WebDriver

  4. 4

    org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

  5. 5

    org.openqa.selenium.remote.SessionNotFoundException for ChromeDriver

  6. 6

    python selenium - Element is not currently interactable and may not be manipulated

  7. 7

    How to resolve org.openqa.selenium.WebDriverException?

  8. 8

    org.openqa.selenium.InvalidSelectorException - [object Text]. It should be an element

  9. 9

    Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element

  10. 10

    org.openqa.selenium.ElementNotVisibleException: element not interactable while trying to click an element through selenium

  11. 11

    Exception in thread "main" org.openqa.selenium.NoSuchElementException: When trying to select an element from a pop-up using selenium

  12. 12

    org.openqa.selenium.NoSuchElementException: Returned node (null) was not a DOM element when trying to locate card-fields-iframe by CssSelector

  13. 13

    element not interactable for the Gmail password field Selenium WebDriver using java

  14. 14

    ElementNotInteractableException: element not interactable error while trying to search for stock on www.finanzen.net using Selenium and Python

  15. 15

    element not interactable exception in selenium web automation

  16. 16

    org.openqa.selenium.ElementClickInterceptedException: element click intercepted error using Selenium and Java in headless mode

  17. 17

    Selenium Fluent Wait Implementation in the code still gives "org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element:"

  18. 18

    OpenQA.Selenium.Support.UI.UnexpectedTagNameException : Element should have been select but was "title" c#

  19. 19

    OpenQA.Selenium.ElementClickInterceptedException : element click intercepted: Element <button class="button" > is not clickable at point (x,y)

  20. 20

    Selenium Element not interactable exception- How to overcome this?

  21. 21

    element not interactable: element has zero size- Java Selenium

  22. 22

    org.openqa.selenium.NoSuchElementException

  23. 23

    Protractor - fields present but not visible - Element is not currently interactable and may not be manipulated

  24. 24

    Unable to locate element: org.openqa.selenium.NoSuchElementException

  25. 25

    org.openqa.selenium.InvalidSelectorException - [object Text]. It should be an element

  26. 26

    InvalidElementStateException on element that is visible and interactable

  27. 27

    org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document when tried to enter number

  28. 28

    Selenium Java - ElementNotInteractableException upon trying to click a link

  29. 29

    org.openqa.selenium.StaleElementReferenceException: element is not attached to the page document while iterating through a List

HotTag

Archive