aboutsummaryrefslogtreecommitdiffstats
path: root/test/screens/new-ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/screens/new-ui.js')
-rw-r--r--test/screens/new-ui.js3
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()