something
This commit is contained in:
parent
59d9d6c375
commit
7530007466
|
|
@ -72,7 +72,7 @@ export class Accessibility {
|
|||
interestingOnly = true,
|
||||
root = null,
|
||||
} = options;
|
||||
const {tree, needle} = await this._getAXTree(root);
|
||||
const {tree, needle} = await this._getAXTree(root || undefined);
|
||||
if (!interestingOnly) {
|
||||
if (root)
|
||||
return needle && serializeTree(needle)[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue