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