rod
rod copied to clipboard
Emulate Device has some different with chrome toggle device but I dont know how to fix it
version: v0.103.0
Question eg: use rod visit steam
func main(){
browserPath, _ := launcher.LookPath()
l:=launcher.New().Bin(browserPath)
defer func() {
l.Kill()
l.Cleanup()
}()
u := l.MustLaunch()
targetUrl:="https://store.steampowered.com/join"
page:=rod.New().ControlURL(u).MustConnect().MustEmulate(devices.IPhoneX).MustPage(targetUrl)
}
we can see that the tag span do not listen touchstart or touchend event,because the website do not think we are a mobile device
but if we use the chrome toolbar to emulate mobile device and refresh the page,we can see that the span tag has listen touch event now the website think we are a mobile device
so where is the different between rod emulate and chrome toolbar enmulate ?? please help me
Please add a valid **Rod Version:** v0.0.0
to your issue. Current version is v0.103.0
generated by check-issue
version is v0.103.0
#322
@ysmood please help me reopen the issues
Still #322
@ysmood please help reopen
I think the problem is not the emulation API, because other parts work fine, I think it's because the Captcha uses some other way to detect if the browser is not mobile:
func main() {
rod.New().MustConnect().DefaultDevice(devices.IPhoneX).MustPage("https://store.steampowered.com/join")
utils.Pause()
}

The same problem with puppeteer, so I think it's an upstream issue with Chromium:
https://github.com/puppeteer/puppeteer/issues/8150
Has the problem been solved ?
Has the issue '10793' been resolved in Puppeteer? Can you also handle the network session manager on the Go side?
@Ryan-gsq Good point, it's in the plan.
Thank you for your work, I will wait