Skip to content
Discussion options

You must be logged in to vote

Try this script:

from seleniumbase import SB

with SB(uc=True, test=True) as sb:
    url = "https://pixelscan.net/fingerprint-check"
    sb.activate_cdp_mode(url)
    sb.remove_element("#headerBanner")
    sb.wait_for_element("pxlscn-dynamic-ad")
    sb.sleep(0.5)
    sb.remove_elements("pxlscn-dynamic-ad")
    sb.sleep(2)
    sb.assert_text("No masking detected", "pxlscn-fingerprint-masking")
    sb.assert_text("No automated behavior", "pxlscn-bot-detection")
    sb.cdp.highlight('span:contains("is consistent")')
    sb.sleep(1)
    sb.cdp.highlight("pxlscn-fingerprint-masking p")
    sb.sleep(1)
    sb.cdp.highlight("pxlscn-bot-detection p")
    sb.sleep(2)

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@C-J-Astbury
Comment options

@mdmintz
Comment options

@C-J-Astbury
Comment options

@mdmintz
Comment options

@C-J-Astbury
Comment options

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