packages/selenium-chrome-clear-cache/index.js
function getSlot(name) {
		const main = document.querySelector('settings-ui').shadowRoot.children.container.children.main;
		const settings = findTag(main.shadowRoot.children, 'SETTINGS-BASIC-PAGE');
		const advancedPage = settings.shadowRoot.children.advancedPage;
		const [page] = [...advancedPage.children].find(i => i.section === 'privacy').children;
		const dialog = findTag(page.shadowRoot.children, 'SETTINGS-CLEAR-BROWSING-DATA-DIALOG');

		return dialog.shadowRoot.children.clearBrowsingDataDialog.querySelector(`[slot="${name}"]`);
	}
function getSlot(name) {
		const main = document.querySelector('settings-ui').shadowRoot.children.container.children.main;
		const settings = findTag(main.shadowRoot.children, 'SETTINGS-BASIC-PAGE');
		const advancedPage = settings.shadowRoot.children.advancedPage;
		const [page] = [...advancedPage.children].find(i => i.section === 'privacy').children;
		const dialog = findTag(page.shadowRoot.children, 'SETTINGS-CLEAR-BROWSING-DATA-DIALOG');

		return dialog.shadowRoot.children.clearBrowsingDataDialog.querySelector(`[slot="${name}"]`);
	}
function getSlot ( name ) { const main = document . querySelector ( 'settings-ui' ) . shadowRoot . children . container . children . main ; const settings = findTag ( main . shadowRoot . children , 'SETTINGS-BASIC-PAGE' ) ; const advancedPage = settings . shadowRoot . children . advancedPage ; const [ page ] = [ ... advancedPage . children ] . find ( i => i . section === 'privacy' ) . children ; const dialog = findTag ( page . shadowRoot . children , 'SETTINGS-CLEAR-BROWSING-DATA-DIALOG' ) ; return dialog . shadowRoot . children . clearBrowsingDataDialog . querySelector ( ` ${ name } ` ) ; }
Find UI "slot"
@param  {String} name
@return {DOMElement}
Find UI slot