diff options
author | Thomas <thomas.b.huang@gmail.com> | 2018-05-11 01:24:27 +0800 |
---|---|---|
committer | Thomas <thomas.b.huang@gmail.com> | 2018-05-11 01:24:27 +0800 |
commit | 60933f10901730946041815e0d1dd543f7ac6972 (patch) | |
tree | 1e0fb642e17dfc5a07cec4823fbb5d2df2b86f2d /test/screens | |
parent | 68bbe18e3261e00734b0522b7e8d18306d51c646 (diff) | |
download | tangerine-wallet-browser-60933f10901730946041815e0d1dd543f7ac6972.tar tangerine-wallet-browser-60933f10901730946041815e0d1dd543f7ac6972.tar.gz tangerine-wallet-browser-60933f10901730946041815e0d1dd543f7ac6972.tar.bz2 tangerine-wallet-browser-60933f10901730946041815e0d1dd543f7ac6972.tar.lz tangerine-wallet-browser-60933f10901730946041815e0d1dd543f7ac6972.tar.xz tangerine-wallet-browser-60933f10901730946041815e0d1dd543f7ac6972.tar.zst tangerine-wallet-browser-60933f10901730946041815e0d1dd543f7ac6972.zip |
Job Screens with Shadow Dom Css selector
Diffstat (limited to 'test/screens')
-rw-r--r-- | test/screens/new-ui.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/screens/new-ui.js b/test/screens/new-ui.js index e0ce8dcdf..e176da529 100644 --- a/test/screens/new-ui.js +++ b/test/screens/new-ui.js @@ -39,8 +39,7 @@ async function captureAllScreens() { const extPath = path.resolve('dist/chrome') driver = buildWebDriver(extPath) await driver.get('chrome://extensions-frame') - const elems = await driver.findElements(By.css('* /deep/ extensions-item')) - const extensionId = await elems[1].getAttribute('id') + const extensionId = await driver.executeScript('return document.querySelector("extensions-manager").shadowRoot.querySelector("extensions-view-manager extensions-item-list").shadowRoot.querySelector("#container > div.items-container > extensions-item:nth-child(2)").getAttribute("id")') await driver.get(`chrome-extension://${extensionId}/home.html`) await delay(500) tabs = await driver.getAllWindowHandles() |