Bug 211492

Summary: [WebDriver][GTK] ElementNotInteractableException should not be raised from Get_Element_Rect
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bburg, bugs-noreply, jack.van.leeuwen
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Lauro Moura
Reported 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
Attachments
Note You need to log in before you can comment on or make changes to this bug.