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