Index: third_party/WebKit/LayoutTests/inspector/elements/styles-4/style-update-during-selector-edit.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/style-update-during-selector-edit.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/style-update-during-selector-edit.html |
index 897a5d127f7b86a718accab0702e4533bae7da39..3e0cacd6f659526594a5c7656b3928a21480f09e 100644 |
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/style-update-during-selector-edit.html |
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/style-update-during-selector-edit.html |
@@ -34,7 +34,7 @@ function test() |
InspectorTest.addSniffer(Elements.StylesSidebarPane.prototype, "doUpdate", rebuildUpdate); |
InspectorTest.domModel.addEventListener(SDK.DOMModel.Events.AttrModified, attributeChanged, this); |
// Click "Add new rule". |
- document.querySelector(".styles-pane-toolbar").shadowRoot.querySelector(".largeicon-add").click(); |
+ UI.panels.elements._stylesWidget.contentElement.querySelector(".styles-pane-toolbar").shadowRoot.querySelector(".largeicon-add").click(); |
InspectorTest.evaluateInPage("addStyleClass()", step2); |
} |