Skip to content

Commit 26d782b

Browse files
committed
Update examples
1 parent 7a9dad2 commit 26d782b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/cdp_mode/raw_pixelscan.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from seleniumbase import SB
22

3-
with SB(uc=True, test=True, ad_block=True) as sb:
3+
with SB(uc=True, test=True, incognito=True) as sb:
44
url = "https://pixelscan.net/fingerprint-check"
55
sb.activate_cdp_mode(url)
66
sb.remove_element("#headerBanner")
7+
sb.wait_for_element("pxlscn-dynamic-ad")
8+
sb.sleep(0.5)
79
sb.remove_elements("pxlscn-dynamic-ad")
810
sb.sleep(2)
911
sb.assert_text("No masking detected", "pxlscn-fingerprint-masking")

examples/raw_pixelscan.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from seleniumbase import SB
22

3-
with SB(uc=True, test=True, ad_block=True) as sb:
3+
with SB(uc=True, test=True, incognito=True) as sb:
44
url = "https://pixelscan.net/fingerprint-check"
55
sb.activate_cdp_mode(url)
66
sb.remove_element("#headerBanner")
7+
sb.wait_for_element("pxlscn-dynamic-ad")
8+
sb.sleep(0.5)
79
sb.remove_elements("pxlscn-dynamic-ad")
810
sb.sleep(2)
911
sb.assert_text("No masking detected", "pxlscn-fingerprint-masking")

0 commit comments

Comments
 (0)