Bug 181734 - WebDriver: selenium test testShouldScrollPageAndGetCoordinatesOfAnElementThatIsOutOfViewPort fails
Summary: WebDriver: selenium test testShouldScrollPageAndGetCoordinatesOfAnElementThat...
Status: RESOLVED DUPLICATE of bug 181728
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: 2018-01-17 04:57 PST by Carlos Garcia Campos
Modified: 2018-01-23 01:10 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2018-01-17 04:57:04 PST
_______________________________________________________ testShouldScrollPageAndGetCoordinatesOfAnElementThatIsOutOfViewPort[WebKitGTK] _______________________________________________________

driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="b180d019-50dd-43c1-b2c8-8501430c92ac")>, pages = <conftest.Pages object at 0x7fb8ae33f550>

    def testShouldScrollPageAndGetCoordinatesOfAnElementThatIsOutOfViewPort(driver, pages):
        pages.load("coordinates_tests/page_with_element_out_of_view.html")
        element = driver.find_element(By.ID, "box")
        windowHeight = driver.get_window_size()["height"]
        _check_location(element.location_once_scrolled_into_view, x=10)
>       assert 0 <= element.location_once_scrolled_into_view["y"] <= (windowHeight - 100)
E       assert 429.0 <= (0 - 100)

driver     = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="b180d019-50dd-43c1-b2c8-8501430c92ac")>
element    = <selenium.webdriver.remote.webelement.WebElement (session="b180d019-50dd-43c1-b2c8-8501430c92ac", element="node-0353B636-565B-45C0-839A-FBA36B4FDE42")>
pages      = <conftest.Pages object at 0x7fb8ae33f550>
windowHeight = 0

WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py:55: AssertionError
Comment 1 Carlos Garcia Campos 2018-01-23 01:10:17 PST

*** This bug has been marked as a duplicate of bug 181728 ***