File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 3
3
with SB (uc = True , incognito = True , test = True ) as sb :
4
4
sb .activate_cdp_mode ("https://pixelscan.net/" )
5
5
sb .sleep (3 )
6
- sb .remove_elements ("div.banner" ) # Remove the banner
6
+ sb .remove_elements (".bg-bannerBg" ) # Remove the top banner
7
+ sb .remove_elements ("pxlscn-ad1" ) # Remove the ad banner
7
8
sb .remove_elements ("jdiv" ) # Remove chat widgets
8
- sb .cdp .scroll_down (15 )
9
9
not_masking_text = "You are not masking your fingerprint"
10
10
sb .assert_text (not_masking_text , "pxlscn-fingerprint-masking" )
11
11
no_automation_detected = "No automation framework detected"
12
12
sb .assert_text (no_automation_detected , "pxlscn-bot-detection" )
13
- sb .highlight ("span.text-success" , loops = 8 )
13
+ consistent_selector = 'div.bg-consistentBg [alt="Good"]'
14
+ sb .highlight (consistent_selector , loops = 8 )
14
15
sb .sleep (1 )
15
16
fingerprint_masking_div = "pxlscn-fingerprint-masking div"
16
17
sb .highlight (fingerprint_masking_div , loops = 9 )
17
18
sb .sleep (1 )
18
- sb .highlight (". bot-detection-context " , loops = 10 )
19
+ sb .highlight ("pxlscn- bot-detection" , loops = 10 )
19
20
sb .sleep (2 )
Original file line number Diff line number Diff line change 10
10
if sb .is_element_present (shadow_head ):
11
11
sb .cdp .gui_click_element (shadow_head )
12
12
sb .sleep (1.5 )
13
+ sb .cdp .click_if_visible ('button[aria-label="Close"]' )
13
14
sb .cdp .remove_elements ('div[class*="ad-container"]' )
14
15
sb .cdp .remove_elements ("div.lite-page-ad" )
15
16
sb .sleep (0.5 )
Original file line number Diff line number Diff line change 2
2
3
3
with SB (uc = True , incognito = True , test = True ) as sb :
4
4
sb .driver .uc_open_with_reconnect ("https://pixelscan.net/" , 7 )
5
- sb .remove_elements ("div.banner" ) # Remove the banner
5
+ sb .remove_elements (".bg-bannerBg" ) # Remove the top banner
6
+ sb .remove_elements ("pxlscn-ad1" ) # Remove the ad banner
6
7
sb .remove_elements ("jdiv" ) # Remove chat widgets
7
8
no_automation_detected = "No automation framework detected"
8
9
sb .assert_text (no_automation_detected , "pxlscn-bot-detection" )
9
10
not_masking_text = "You are not masking your fingerprint"
10
11
sb .assert_text (not_masking_text , "pxlscn-fingerprint-masking" )
11
- sb .highlight ("span.text-success" , loops = 8 )
12
+ consistent_selector = 'div.bg-consistentBg [alt="Good"]'
13
+ sb .highlight (consistent_selector , loops = 8 , scroll = False )
12
14
sb .sleep (1 )
13
15
fingerprint_masking_div = "pxlscn-fingerprint-masking div"
14
16
sb .highlight (fingerprint_masking_div , loops = 9 , scroll = False )
15
17
sb .sleep (1 )
16
- sb .highlight (". bot-detection-context " , loops = 10 , scroll = False )
18
+ sb .highlight ("pxlscn- bot-detection" , loops = 10 , scroll = False )
17
19
sb .sleep (2 )
You can’t perform that action at this time.
0 commit comments