I wonder if there is a way of removing a lot of the Chrome (and webkit) specific code in the utils by making this use Web Driver BiDi instead? It seems weird to hook into testing internals... it feels like Web Driver would solve for this.