Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Shadow roots are a nightmare when doing any kind of Web scraping or UI integration testing


If you own the browser, you can just nuke the `mode` option of `attachShadow` method before page itself runs. And bang, you can access to whatever you want now. So it isn't really a big deal if you are scraping or doing UI testing. Because the one runs first has the power to do whatever you want in js (Except for some primitive specifically protected in browser).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: