Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 082fc80

Browse files
authored
Merge pull request #3724 from seleniumbase/dependencies-and-examples
Refresh dependencies and examples
2 parents 26a24a4 + 4561a3c commit 082fc80

File tree

7 files changed

+22
-28
lines changed

7 files changed

+22
-28
lines changed

‎examples/cdp_mode/raw_cdp_nike.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
sb = sb_cdp.Chrome(url)
55
sb.click('div[data-testid="user-tools-container"]')
66
sb.sleep(1)
7-
search = "Road Racing Shoes"
7+
search = "Pegasus"
88
sb.press_keys('input[type="search"]', search)
99
sb.sleep(4)
1010
elements = sb.select_all('ul[data-testid*="products"] figure .details')

‎examples/cdp_mode/raw_chatgpt.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
sb.activate_cdp_mode(url)
77
sb.sleep(1)
88
sb.click_if_visible('button[aria-label="Close dialog"]')
9+
sb.click_if_visible('button[data-testid="close-button"]')
910
query = "Compare Playwright to SeleniumBase in under 178 words"
1011
sb.press_keys("#prompt-textarea", query)
1112
sb.click('button[data-testid="send-button"]')

‎examples/cdp_mode/raw_pixelscan.py‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
from seleniumbase import SB
22

33
with SB(uc=True, incognito=True, test=True) as sb:
4-
sb.activate_cdp_mode("https://pixelscan.net/")
5-
sb.sleep(2)
6-
sb.click('button[class*="startButton"]')
7-
sb.sleep(6)
4+
url = "https://pixelscan.net/fingerprint-check"
5+
sb.activate_cdp_mode(url)
6+
sb.sleep(3)
87
sb.remove_elements(".bg-bannerBg") # Remove top banner
98
sb.remove_elements("pxlscn-ad1") # Remove an ad banner
109
sb.remove_elements("pxlscn-ad2") # Remove an ad banner
1110
sb.remove_elements("jdiv") # Remove chat widgets
12-
sb.sleep(14)
1311
not_masking_text = "You are not masking your fingerprint"
14-
sb.assert_text(
15-
not_masking_text,
16-
"pxlscn-fingerprint-masking",
17-
timeout=20,
18-
)
12+
fp_selector = "pxlscn-fingerprint-masking"
13+
sb.assert_text(not_masking_text, fp_selector, timeout=15)
1914
no_automation_detected = "No automation framework detected"
2015
sb.assert_text(no_automation_detected, "pxlscn-bot-detection")
2116
consistent_selector = 'div.bg-consistentBg [alt="Good"]'

‎examples/raw_pixelscan.py‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
from seleniumbase import SB
22

33
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)
66
sb.remove_elements(".bg-bannerBg") # Remove top banner
77
sb.remove_elements("pxlscn-ad1") # Remove an ad banner
88
sb.remove_elements("pxlscn-ad2") # Remove an ad banner
99
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-
)
1610
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"]'
1816
consistent_selector = 'div.bg-consistentBg [alt="Good"]'
1917
sb.highlight(consistent_selector, loops=8, scroll=False)
2018
sb.sleep(1)

‎requirements.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pip>=25.0.1;python_version<"3.9"
2-
pip>=25.1;python_version>="3.9"
2+
pip>=25.1.1;python_version>="3.9"
33
packaging>=25.0
44
setuptools~=70.2;python_version<"3.10"
55
setuptools>=80.1.0;python_version>="3.10"
@@ -32,7 +32,7 @@ tabcompleter>=1.4.0
3232
pdbp>=1.7.0
3333
idna==3.10
3434
chardet==5.2.0
35-
charset-normalizer==3.4.1
35+
charset-normalizer>=3.4.2,<4
3636
urllib3>=1.26.20,<2;python_version<"3.10"
3737
urllib3>=1.26.20,<2.5.0;python_version>="3.10"
3838
requests==2.32.3
@@ -45,7 +45,7 @@ trio-websocket==0.12.2
4545
wsproto==1.2.0
4646
websocket-client==1.8.0
4747
selenium==4.27.1;python_version<"3.9"
48-
selenium==4.31.0;python_version>="3.9"
48+
selenium==4.32.0;python_version>="3.9"
4949
cssselect==1.2.0;python_version<"3.9"
5050
cssselect==1.3.0;python_version>="3.9"
5151
sortedcontainers==2.4.0

‎seleniumbase/__version__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.37.12"
2+
__version__ = "4.38.0"

‎setup.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
python_requires=">=3.8",
149149
install_requires=[
150150
'pip>=25.0.1;python_version<"3.9"',
151-
'pip>=25.1;python_version>="3.9"',
151+
'pip>=25.1.1;python_version>="3.9"',
152152
'packaging>=25.0',
153153
'setuptools~=70.2;python_version<"3.10"', # Newer ones had issues
154154
'setuptools>=80.1.0;python_version>="3.10"',
@@ -181,7 +181,7 @@
181181
"pdbp>=1.7.0",
182182
"idna==3.10",
183183
'chardet==5.2.0',
184-
'charset-normalizer==3.4.1',
184+
'charset-normalizer>=3.4.2,<4',
185185
'urllib3>=1.26.20,<2;python_version<"3.10"',
186186
'urllib3>=1.26.20,<2.5.0;python_version>="3.10"',
187187
'requests==2.32.3',
@@ -194,7 +194,7 @@
194194
'wsproto==1.2.0',
195195
'websocket-client==1.8.0',
196196
'selenium==4.27.1;python_version<"3.9"',
197-
'selenium==4.31.0;python_version>="3.9"',
197+
'selenium==4.32.0;python_version>="3.9"',
198198
'cssselect==1.2.0;python_version<"3.9"',
199199
'cssselect==1.3.0;python_version>="3.9"',
200200
"sortedcontainers==2.4.0",
@@ -264,7 +264,7 @@
264264
'pdfminer.six==20250324;python_version<"3.9"',
265265
'pdfminer.six==20250416;python_version>="3.9"',
266266
'cryptography==39.0.2;python_version<"3.9"',
267-
'cryptography==44.0.2;python_version>="3.9"',
267+
'cryptography==44.0.3;python_version>="3.9"',
268268
'cffi==1.17.1',
269269
"pycparser==2.22",
270270
],

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /