[Webkit-unassigned] [Bug 180415] New: WebDriver: several tests in imported/w3c/webdriver/tests/state/get_element_attribute.py are failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 5 03:26:31 PST 2017


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

            Bug ID: 180415
           Summary: WebDriver: several tests in
                    imported/w3c/webdriver/tests/state/get_element_attribu
                    te.py are failing
           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

WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_boolean_attribute[button-attrs1] FAILED
WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_boolean_attribute[dialog-attrs3] FAILED
WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_boolean_attribute[form-attrs5] FAILED
WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_boolean_attribute[iframe-attrs6] FAILED
WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_boolean_attribute[img-attrs7] FAILED
WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_boolean_attribute[input-attrs8] FAILED
WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_boolean_attribute[menuitem-attrs9] FAILED
WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_boolean_attribute[object-attrs10] FAILED
WebDriverTests/imported/w3c/webdriver/tests/state/get_element_attribute.py::test_global_boolean_attributes FAILED

session = <webdriver.client.Session object at 0x7fa64e79ecd0>, tag = 'dialog', attrs = ['open']

    @pytest.mark.parametrize("tag,attrs", [
        ("audio", ["autoplay", "controls", "loop", "muted"]),
        ("button", ["autofocus", "disabled", "formnovalidate"]),
        ("details", ["open"]),
        ("dialog", ["open"]),
        ("fieldset", ["disabled"]),
        ("form", ["novalidate"]),
        ("iframe", ["allowfullscreen"]),
        ("img", ["ismap"]),
        ("input", ["autofocus", "checked", "disabled", "formnovalidate", "multiple", "readonly", "required"]),
        ("menuitem", ["checked", "default", "disabled"]),
        ("object", ["typemustmatch"]),
        ("ol", ["reversed"]),
        ("optgroup", ["disabled"]),
        ("option", ["disabled", "selected"]),
        ("script", ["async", "defer"]),
        ("select", ["autofocus", "disabled", "multiple", "required"]),
        ("textarea", ["autofocus", "disabled", "readonly", "required"]),
        ("track", ["default"]),
        ("video", ["autoplay", "controls", "loop", "muted"])
    ])
    def test_boolean_attribute(session, tag, attrs):
        # 13.2 Step 5
        for attr in attrs:
            session.url = inline("<{0} {1}>".format(tag, attr))

            element = session.find.css(tag, all=False)
            result = result = get_attribute(session, element.id, attr)
>           assert_success(result, "true")

attr       = 'open'
attrs      = ['open']
element    = <webdriver.client.Element object at 0x7fa64e762d50>
result     = <Responsetatus=200 body={"value": ""}>
session    = <webdriver.client.Session object at 0x7fa64e79ecd0>
tag        = 'dialog'

It seems we return an empty string instead of true/false in some cases

-- 
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/20171205/6a2caf01/attachment.html>


More information about the webkit-unassigned mailing list