|
1 | 1 | from seleniumbase import SB |
2 | 2 |
|
3 | 3 | with SB(uc=True, incognito=True, test=True) as sb: |
4 | | - sb.driver.uc_open_with_reconnect("https://pixelscan.net/", 2) |
5 | | - sb.uc_click('button[class*="startButton"]', reconnect_time=20) |
| 4 | + url = "https://pixelscan.net/fingerprint-check" |
| 5 | + sb.driver.uc_open_with_reconnect(url, 7) |
6 | 6 | sb.remove_elements(".bg-bannerBg") # Remove top banner |
7 | 7 | sb.remove_elements("pxlscn-ad1") # Remove an ad banner |
8 | 8 | sb.remove_elements("pxlscn-ad2") # Remove an ad banner |
9 | 9 | sb.remove_elements("jdiv") # Remove chat widgets |
10 | | - no_automation_detected = "No automation framework detected" |
11 | | - sb.assert_text( |
12 | | - no_automation_detected, |
13 | | - "pxlscn-bot-detection", |
14 | | - timeout=20, |
15 | | - ) |
16 | 10 | not_masking_text = "You are not masking your fingerprint" |
17 | | - sb.assert_text(not_masking_text, "pxlscn-fingerprint-masking") |
| 11 | + fp_selector = "pxlscn-fingerprint-masking" |
| 12 | + sb.assert_text(not_masking_text, fp_selector, timeout=15) |
| 13 | + no_automation_detected = "No automation framework detected" |
| 14 | + sb.assert_text(no_automation_detected, "pxlscn-bot-detection") |
| 15 | + consistent_selector = 'div.bg-consistentBg [alt="Good"]' |
18 | 16 | consistent_selector = 'div.bg-consistentBg [alt="Good"]' |
19 | 17 | sb.highlight(consistent_selector, loops=8, scroll=False) |
20 | 18 | sb.sleep(1) |
|
0 commit comments