> Selenium incorrectly reported "element not interactable" when the problem
was in fact that the elemnt was merely outside the viewport. If the element
is close to, or beyond, the edge of the screen, try scrolling before
interacting with it.

This is not what matches my personal experience. I've never experienced
ElementNotInteractableException for an element that was outside of viewport
- Selenium pretty much always scrolls the viewport so that element is
visible before clicking it and when it fails to do that because there are
floating elements on the page you would get something along the lines of
"org.openqa.selenium.WebDriverException: Element is not clickable at point
(x, y). Other element would receive the click". From my
experience ElementNotInteractableException is thrown when the element is
not displayed at all (it is hidden via CSS) or it's disabled/read only.

On Mon, Aug 24, 2020 at 10:16 PM Ben Frey <[email protected]> wrote:

> Ahh, I hadn't thought about the viewport. I'll play with that and see how
> it goes. I also added min properties to the radioButtons navigator object,
> and that seems like it may have helped.
>
> On Monday, August 24, 2020 at 3:54:41 PM UTC-5 [email protected] wrote:
>
>> Hi Ben,
>>
>> this is difficult to answer correctly without more information.
>> Generally, I would try to narrow down the conditions, or the selector
>> respectively, as much as possible.
>> One explanation could be that you are still looking at the wrong button,
>> after all you seem to be having more than one, and narrowing it down to the
>> correct one seems to be problematic.
>>
>> I just recently had the problem that Selenium incorrectly reported
>> "element not interactable" when the problem was in fact that the elemnt was
>> merely outside the viewport. If the element is close to, or beyond, the
>> edge of the screen, try scrolling before interacting with it.
>>
>> Thomas
>> Ben Frey schrieb am Montag, 24. August 2020 um 20:05:14 UTC+2:
>>
>>> I'm having a devil of a time with one particular page being very flaky.
>>> I've set atCheckWaiting = true globally. In the page's at-checker I
>>> verify that there there's at least one radio button (e.g. 
>>> radioButtons.size()
>>> > 0). In the script, I have some conditional logic that also has a
>>> waitFor that depends on the same condition, but immediately after that, if
>>> I try to interact with radioButtons, I get  the "element not interactable"
>>> message from Selenium. What's going on here? The content should be there
>>> since the at-checker passed.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/08ae974a-ecc5-440a-b246-10e2703f4e70n%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/08ae974a-ecc5-440a-b246-10e2703f4e70n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQR4LgiqYiw3JY_4Civ4k%3DqfLVM9agCjZwcnwj88bk6N9w%40mail.gmail.com.

Reply via email to