WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
211492
[WebDriver][GTK] ElementNotInteractableException should not be raised from Get_Element_Rect
https://bugs.webkit.org/show_bug.cgi?id=211492
Summary
[WebDriver][GTK] ElementNotInteractableException should not be raised from Ge...
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
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug