playwright/test/assets/sectionselectorengine.js

8 lines
168 B
JavaScript
Raw Normal View History

({
query(root, selector) {
return root.querySelector('section');
},
queryAll(root, selector) {
return Array.from(root.querySelectorAll('section'));
}
})