Hi there,
I'm in a situation where I need to use DevTools to interact with a remote headless Chrome instance. The workflow is the following:
- spawn the headless instance and do some preliminary setup (chrome-launcher + chrome-remote-interface);
- from another instance, navigate to chrome://inspect and inspect the tab;
- a window pops up where, on the left-hand side there is the screencast, and on the right-hand side there is DevTools.
The problem is that Chrome is treating the remote instance as a mobile device, in particular it show the circle pointer. The question is, how can I use it as desktop device? The usual DevTools toolbar with the dropdown menu containing Desktop, Mobile, etc. is not present in this setup.
I even tried executing some CDP methods like Emulation.setTouchEmulationEnabled and Emulation.setDeviceMetricsOverride, but with no luck.
Do you have any idea about how can I achieve this?
Best,
Andrea