mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-16 07:33:35 +03:00
f709e2300c
Also remove unused `SelectorEngine.create` function and add tests.
8 lines
168 B
JavaScript
8 lines
168 B
JavaScript
({
|
|
query(root, selector) {
|
|
return root.querySelector('section');
|
|
},
|
|
queryAll(root, selector) {
|
|
return Array.from(root.querySelectorAll('section'));
|
|
}
|
|
}) |