mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-16 15:52:24 +03:00
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'));
|
||
|
}
|
||
|
})
|