Bug 211492 - [WebDriver][GTK] ElementNotInteractableException should not be raised from Get_Element_Rect
Summary: [WebDriver][GTK] ElementNotInteractableException should not be raised from Ge...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-05 21:20 PDT by Lauro Moura
Modified: 2021-01-12 01:30 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2020-05-05 21:20:47 PDT
Two selenium tests are raising ElementNotInteractableException when getting the element rect for an invisible and an hidden elements.

Per the current WebDriver Spec[1], this method should not raise this exception.

Tests are:

*  imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py::testShouldGetCoordinatesOfAnElement[WebKitGTK-hidden]
    @pytest.mark.parametrize('page', (
        'coordinates_tests/simple_page.html',
        'coordinates_tests/page_with_empty_element.html',
        'coordinates_tests/page_with_transparent_element.html',
        'coordinates_tests/page_with_hidden_element.html'),
        ids=('basic', 'empty', 'transparent', 'hidden'))
    def testShouldGetCoordinatesOfAnElement(page, driver, pages):
        pages.load(page)
        element = driver.find_element(By.ID, "box")
        _check_location(element.location_once_scrolled_into_view, x=10, y=10)
>       _check_location(element.location, x=10, y=10)
                                                      
*  imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py::testShouldGetCoordinatesOfAnInvisibleElement[WebKitGTK]
    def testShouldGetCoordinatesOfAnInvisibleElement(driver, pages):
        pages.load("coordinates_tests/page_with_invisible_element.html")
        element = driver.find_element(By.ID, "box")
        _check_location(element.location_once_scrolled_into_view, x=0, y=0)
>       _check_location(element.location, x=0, y=0)


[1] https://www.w3.org/TR/webdriver/#get-element-rect