Skip to content

How to spoof browser info when using is_mobile? #2754

Answered by mdmintz
Vrackko asked this question in Q&A
Discussion options

You must be logged in to vote

What's the issue with using Chrome on a mobile device running Android? Android devices use Chrome.

The Selenium mobile emulator is very detectable, and there's no real way to hide that you're using an emulator because a real mobile device works differently.

If you're trying to get past Pixelscan, just use a regular UC Mode web browser:

from seleniumbase import SB

with SB(uc=True, incognito=True, test=True) as sb:
    sb.driver.uc_open_with_reconnect("https://pixelscan.net/", 10)
    sb.remove_elements("jdiv")  # Remove chat widgets
    sb.assert_text("No automation framework detected", "pxlscn-bot-detection")
    not_masking = "You are not masking your fingerprint"
    sb.assert_text(not…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants