Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulate Device has some different with chrome toggle device but I dont know how to fix it #565

Open
w849688611 opened this issue Mar 20, 2022 · 12 comments
Labels
upstream Upstream issue that can't solved by Rod

Comments

@w849688611
Copy link

w849688611 commented Mar 20, 2022

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

image

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

image

so where is the different between rod emulate and chrome toolbar enmulate ?? please help me

@w849688611 w849688611 added the question Questions related to rod label Mar 20, 2022
@rod-robot
Copy link

Please add a valid **Rod Version:** v0.0.0 to your issue. Current version is v0.103.0
generated by check-issue

@w849688611
Copy link
Author

image
version is v0.103.0

@ysmood
Copy link
Member

ysmood commented Mar 20, 2022

#322

@ysmood ysmood closed this as completed Mar 20, 2022
@w849688611
Copy link
Author

@ysmood please help me reopen the issues

@ysmood
Copy link
Member

ysmood commented Mar 20, 2022

Still #322

@w849688611
Copy link
Author

@ysmood please help reopen

@ysmood ysmood reopened this Mar 20, 2022
@ysmood
Copy link
Member

ysmood commented Mar 20, 2022

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()
}

image

@ysmood ysmood added discuss Need review and discussion help wanted We wish someone can help us to work on it and removed question Questions related to rod labels Mar 20, 2022
@ysmood
Copy link
Member

ysmood commented Mar 20, 2022

The same problem with puppeteer, so I think it's an upstream issue with Chromium:

puppeteer/puppeteer#8150

@ysmood ysmood added upstream Upstream issue that can't solved by Rod and removed discuss Need review and discussion help wanted We wish someone can help us to work on it labels Mar 20, 2022
@gopkg-dev
Copy link

Has the problem been solved ?

@Ryan-gsq
Copy link

Ryan-gsq commented Jan 3, 2024

Has the issue '10793' been resolved in Puppeteer? Can you also handle the network session manager on the Go side?

@ysmood
Copy link
Member

ysmood commented Jan 3, 2024

@Ryan-gsq Good point, it's in the plan.

@Ryan-gsq
Copy link

Ryan-gsq commented Jan 4, 2024

Thank you for your work, I will wait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Upstream issue that can't solved by Rod
Projects
None yet
Development

No branches or pull requests

5 participants