How to enable “Show user agent shadow DOM” in Chrome using a command-line switch

痞子三分冷 提交于 2020-01-06 19:00:01

问题


I'm using chai-webdriver to test some Google Polymer components and whenever webdriver loads the Chrome browser it uses a default set of switches. In order for Polymer's Shadow DOM components to appear in the DOM tree, it seems I need to enable the "Show user agent shadow DOM" option in the dev tools, but this gets reset back to disabled every time selenium-webdriver loads Chrome. I could add this to the default switches in webdriver, but I can't find a switch for it in this list. Anyone know what the right command-line switch to use is?

来源:https://stackoverflow.com/questions/26126587/how-to-enable-show-user-agent-shadow-dom-in-chrome-using-a-command-line-switch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!