go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.

Home Page:https://go-rod.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

m7rick opened this issue · comments

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.

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

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