mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
browser(firefox): a11y haspopup is a string, not a boolean (#15056)
This commit is contained in:
parent
7bd72716f9
commit
141093a1cd
@ -1,2 +1,2 @@
|
||||
1329
|
||||
Changed: dgozman@gmail.com Thu Jun 2 16:19:39 PDT 2022
|
||||
1330
|
||||
Changed: dgozman@gmail.com Wed Jun 22 16:26:54 PDT 2022
|
||||
|
||||
@ -869,7 +869,6 @@ class PageAgent {
|
||||
'focused',
|
||||
'pressed',
|
||||
'focusable',
|
||||
'haspopup',
|
||||
'required',
|
||||
'invalid',
|
||||
'modal',
|
||||
@ -906,7 +905,7 @@ class PageAgent {
|
||||
if (numericalProperty in attributes)
|
||||
tree[numericalProperty] = parseFloat(attributes[numericalProperty]);
|
||||
}
|
||||
for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts']) {
|
||||
for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts', 'haspopup']) {
|
||||
if (stringProperty in attributes)
|
||||
tree[stringProperty] = attributes[stringProperty];
|
||||
}
|
||||
|
||||
@ -149,7 +149,7 @@ axTypes.AXTree = {
|
||||
focused: t.Optional(t.Boolean),
|
||||
pressed: t.Optional(t.Boolean),
|
||||
focusable: t.Optional(t.Boolean),
|
||||
haspopup: t.Optional(t.Boolean),
|
||||
haspopup: t.Optional(t.String),
|
||||
required: t.Optional(t.Boolean),
|
||||
invalid: t.Optional(t.Boolean),
|
||||
modal: t.Optional(t.Boolean),
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
1327
|
||||
Changed: dgozman@gmail.com Thu Jun 2 16:19:39 PDT 2022
|
||||
1328
|
||||
Changed: dgozman@gmail.com Wed Jun 22 16:26:54 PDT 2022
|
||||
|
||||
@ -869,7 +869,6 @@ class PageAgent {
|
||||
'focused',
|
||||
'pressed',
|
||||
'focusable',
|
||||
'haspopup',
|
||||
'required',
|
||||
'invalid',
|
||||
'modal',
|
||||
@ -906,7 +905,7 @@ class PageAgent {
|
||||
if (numericalProperty in attributes)
|
||||
tree[numericalProperty] = parseFloat(attributes[numericalProperty]);
|
||||
}
|
||||
for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts']) {
|
||||
for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts', 'haspopup']) {
|
||||
if (stringProperty in attributes)
|
||||
tree[stringProperty] = attributes[stringProperty];
|
||||
}
|
||||
|
||||
@ -149,7 +149,7 @@ axTypes.AXTree = {
|
||||
focused: t.Optional(t.Boolean),
|
||||
pressed: t.Optional(t.Boolean),
|
||||
focusable: t.Optional(t.Boolean),
|
||||
haspopup: t.Optional(t.Boolean),
|
||||
haspopup: t.Optional(t.String),
|
||||
required: t.Optional(t.Boolean),
|
||||
invalid: t.Optional(t.Boolean),
|
||||
modal: t.Optional(t.Boolean),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user