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