WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 180415
WebDriver: several tests in imported/w3c/webdriver/tests/state/get_element_attribute.py are failing
https://bugs.webkit.org/show_bug.cgi?id=180415
Summary
WebDriver: several tests in imported/w3c/webdriver/tests/state/get_element_at...
Carlos Garcia Campos
Reported
2017-12-05 03:26:31 PST
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
Attachments
Patch
(7.22 KB, patch)
2019-11-29 04:31 PST
,
Carlos Garcia Campos
bburg
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2019-11-29 04:31:54 PST
Created
attachment 384499
[details]
Patch
Blaze Burg
Comment 2
2020-01-06 17:26:51 PST
Comment on
attachment 384499
[details]
Patch r=me
Carlos Garcia Campos
Comment 3
2020-01-07 01:53:01 PST
Committed
r254117
: <
https://trac.webkit.org/changeset/254117
>
Radar WebKit Bug Importer
Comment 4
2020-01-07 01:53:16 PST
<
rdar://problem/58368442
>
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