Index: third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js |
index 91986c7b0dd4d962529588bfffdff09327ac288a..02dd2e8a1eabb2802e4b6cf4b1699354c575d7e8 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js |
@@ -930,7 +930,7 @@ InspectorTest.addNewRuleInStyleSheet = function(styleSheetHeader, selector, call |
InspectorTest.addNewRule = function(selector, callback) |
{ |
// 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.addSniffer(Elements.StylesSidebarPane.prototype, "_addBlankSection", onBlankSection.bind(null, selector, callback)); |
} |