[Webkit-unassigned] [Bug 181735] New: WebDriver: two selenium tests in position_and_size_tests.py fail with similar backtrace
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 17 04:59:52 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=181735
Bug ID: 181735
Summary: WebDriver: two selenium tests in
position_and_size_tests.py fail with similar backtrace
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: cgarcia at igalia.com
CC: bburg at apple.com
imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py::testShouldGetCoordinatesOfAnElementInAFrame[WebKitGTK] FAILED
imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py::testShouldGetCoordinatesOfAnElementInANestedFrame[WebKitGTK] FAILED
___________________________________________________________________ testShouldGetCoordinatesOfAnElementInAFrame[WebKitGTK] ___________________________________________________________________
driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="57d97b66-4911-465d-8b1f-56b330f08c66")>, pages = <conftest.Pages object at 0x7fb8adf618d0>
@pytest.mark.xfail_marionette
def testShouldGetCoordinatesOfAnElementInAFrame(driver, pages):
pages.load("coordinates_tests/element_in_frame.html")
driver.switch_to_frame(driver.find_element(By.NAME, "ifr"))
element = driver.find_element(By.ID, "box")
> _check_location(element.location_once_scrolled_into_view, x=25, y=25)
driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="57d97b66-4911-465d-8b1f-56b330f08c66")>
element = <selenium.webdriver.remote.webelement.WebElement (session="57d97b66-4911-465d-8b1f-56b330f08c66", element="node-9637AAB1-C55F-432D-869C-49D25EA639F9")>
pages = <conftest.Pages object at 0x7fb8adf618d0>
WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py:64:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
location = {'x': 10.0, 'y': 10.0}, kwargs = {'x': 25, 'y': 25}, expected = dict_items([('y', 25), ('x', 25)]), actual = dict_items([('y', 10.0), ('x', 10.0)]), @py_assert1 = False
@py_format3 = "dict_items([('y', 25), ('x', 25)]) <= dict_items([('y', 10.0), ('x', 10.0)])"
@py_format5 = "assert dict_items([('y', 25), ('x', 25)]) <= dict_items([('y', 10.0), ('x', 10.0)])"
def _check_location(location, **kwargs):
try:
# python 2.x
expected = kwargs.viewitems()
actual = location.viewitems()
except AttributeError:
# python 3.x
expected = kwargs.items()
actual = location.items()
> assert expected <= actual
E AssertionError: assert dict_items([('y', 25), ('x', 25)]) <= dict_items([('y', 10.0), ('x', 10.0)])
actual = dict_items([('y', 10.0), ('x', 10.0)])
expected = dict_items([('y', 25), ('x', 25)])
kwargs = {'x': 25, 'y': 25}
location = {'x': 10.0, 'y': 10.0}
WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py:106: AssertionError
________________________________________________________________ testShouldGetCoordinatesOfAnElementInANestedFrame[WebKitGTK] ________________________________________________________________
driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="4993de11-ee17-4945-82c8-6d82be425ecd")>, pages = <conftest.Pages object at 0x7fb8ae2db290>
@pytest.mark.xfail_marionette
def testShouldGetCoordinatesOfAnElementInANestedFrame(driver, pages):
pages.load("coordinates_tests/element_in_nested_frame.html")
driver.switch_to_frame(driver.find_element(By.NAME, "ifr"))
driver.switch_to_frame(driver.find_element(By.NAME, "ifr"))
element = driver.find_element(By.ID, "box")
> _check_location(element.location_once_scrolled_into_view, x=40, y=40)
driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="4993de11-ee17-4945-82c8-6d82be425ecd")>
element = <selenium.webdriver.remote.webelement.WebElement (session="4993de11-ee17-4945-82c8-6d82be425ecd", element="node-9948FC6A-E84A-4CFC-A13B-60D2A4142841")>
pages = <conftest.Pages object at 0x7fb8ae2db290>
WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
location = {'x': 10.0, 'y': 10.0}, kwargs = {'x': 40, 'y': 40}, expected = dict_items([('y', 40), ('x', 40)]), actual = dict_items([('y', 10.0), ('x', 10.0)]), @py_assert1 = False
@py_format3 = "dict_items([('y', 40), ('x', 40)]) <= dict_items([('y', 10.0), ('x', 10.0)])"
@py_format5 = "assert dict_items([('y', 40), ('x', 40)]) <= dict_items([('y', 10.0), ('x', 10.0)])"
def _check_location(location, **kwargs):
try:
# python 2.x
expected = kwargs.viewitems()
actual = location.viewitems()
except AttributeError:
# python 3.x
expected = kwargs.items()
actual = location.items()
> assert expected <= actual
E AssertionError: assert dict_items([('y', 40), ('x', 40)]) <= dict_items([('y', 10.0), ('x', 10.0)])
actual = dict_items([('y', 10.0), ('x', 10.0)])
expected = dict_items([('y', 40), ('x', 40)])
kwargs = {'x': 40, 'y': 40}
location = {'x': 10.0, 'y': 10.0}
WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py:106: AssertionError
--
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/20180117/249b1325/attachment.html>
More information about the webkit-unassigned
mailing list