go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5k stars 328 forks source link

using "MustPage" to open the page will simulate a device by default #1078

Closed m7rick closed 6 days ago

m7rick commented 6 days ago

Rod Version: v0.116.1

What you got

Hello, using "MustPage" to open the page will simulate a device by default image Other normal pages will not be impersonated image

What you expect to see

How to disable the functionality of the default simulation

What have you tried to solve the question

Haven't found a good way to restore the default settings with the browser for the time being.

github-actions[bot] commented 6 days ago

Please fix the format of your markdown:

3 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## What you got"]

generated by check-issue

m7rick commented 6 days ago

Sorry, just looked at the code, you can use NoDefaultDevice() to disable it, rod is awesome Thanks to the author