[Webkit-unassigned] [Bug 211492] New: [WebDriver][GTK] ElementNotInteractableException should not be raised from Get_Element_Rect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 5 21:20:47 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=211492

            Bug ID: 211492
           Summary: [WebDriver][GTK] ElementNotInteractableException
                    should not be raised from Get_Element_Rect
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lmoura at igalia.com
                CC: bburg at apple.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200506/6c792830/attachment.htm>


More information about the webkit-unassigned mailing list