Skip to content

Commit 95f1fcc

Browse files
committed
Update Pixelscan examples
1 parent 74c95d3 commit 95f1fcc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

examples/cdp_mode/raw_cdp_pixelscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
url = "https://pixelscan.net/fingerprint-check"
44
sb = sb_cdp.Chrome(url, incognito=True)
5-
sb.remove_element("#headerBanner")
65
sb.wait_for_element("pxlscn-dynamic-ad")
76
sb.sleep(0.5)
87
sb.remove_elements("pxlscn-dynamic-ad")
98
sb.sleep(2)
109
sb.assert_text("No masking detected", "pxlscn-fingerprint-masking")
1110
sb.assert_text("No automated behavior", "pxlscn-bot-detection")
12-
sb.highlight('span:contains("is consistent")')
11+
sb.highlight('span.status-success')
1312
sb.sleep(1)
1413
sb.highlight("pxlscn-fingerprint-masking p")
1514
sb.sleep(1)

examples/cdp_mode/raw_pixelscan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
sb.sleep(2)
1010
sb.assert_text("No masking detected", "pxlscn-fingerprint-masking")
1111
sb.assert_text("No automated behavior", "pxlscn-bot-detection")
12+
sb.cdp.highlight('span.status-success')
13+
sb.sleep(1)
1214
sb.cdp.highlight("pxlscn-fingerprint-masking p")
1315
sb.sleep(1)
1416
sb.cdp.highlight("pxlscn-bot-detection p")
15-
sb.sleep(1)
16-
sb.cdp.highlight('span.status-success')
1717
sb.sleep(2)

examples/raw_pixelscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
with SB(uc=True, test=True, incognito=True) as sb:
44
url = "https://pixelscan.net/fingerprint-check"
55
sb.activate_cdp_mode(url)
6-
sb.remove_element("#headerBanner")
76
sb.wait_for_element("pxlscn-dynamic-ad")
87
sb.sleep(0.5)
98
sb.remove_elements("pxlscn-dynamic-ad")
109
sb.sleep(2)
1110
sb.assert_text("No masking detected", "pxlscn-fingerprint-masking")
1211
sb.assert_text("No automated behavior", "pxlscn-bot-detection")
13-
sb.cdp.highlight('span:contains("is consistent")')
12+
sb.cdp.highlight('span.status-success')
1413
sb.sleep(1)
1514
sb.cdp.highlight("pxlscn-fingerprint-masking p")
1615
sb.sleep(1)

0 commit comments

Comments
 (0)