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 b878608

Browse files
authored
Merge pull request #3946 from seleniumbase/cdp-mode-patch-55
CDP Mode: Patch 55
2 parents a0ae330 + 1bd12ba commit b878608

File tree

13 files changed

+191
-15
lines changed

13 files changed

+191
-15
lines changed

‎examples/cdp_mode/ReadMe.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ sb.cdp.gui_press_keys(keys)
465465
sb.cdp.gui_write(text)
466466
sb.cdp.gui_click_x_y(x, y, timeframe=0.25)
467467
sb.cdp.gui_click_element(selector, timeframe=0.25)
468+
sb.cdp.gui_click_captcha()
468469
sb.cdp.gui_drag_drop_points(x1, y1, x2, y2, timeframe=0.35)
469470
sb.cdp.gui_drag_and_drop(drag_selector, drop_selector, timeframe=0.35)
470471
sb.cdp.gui_click_and_hold(selector, timeframe=0.35)

‎examples/cdp_mode/raw_cdp_turnstile.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from seleniumbase import sb_cdp
2+
3+
url = "https://seleniumbase.io/apps/turnstile"
4+
sb = sb_cdp.Chrome(url)
5+
sb.gui_click_captcha()
6+
sb.assert_element("img#captcha-success")
7+
sb.sleep(2)
8+
sb.driver.stop()

‎examples/cdp_mode/raw_cf_clearance.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from seleniumbase import sb_cdp
2+
3+
url = "https://gitlab.com/users/sign_in"
4+
sb = sb_cdp.Chrome(url)
5+
sb.sleep(2.2)
6+
sb.gui_click_captcha()
7+
sb.sleep(2)
8+
cf_cookie = None
9+
all_cookies = sb.get_all_cookies()
10+
for cookie in all_cookies:
11+
if cookie.name == 'cf_clearance':
12+
cf_cookie = cookie
13+
break
14+
if cf_cookie:
15+
print("cf_clearance cookie: %s" % cf_cookie.value)
16+
else:
17+
print("Didn't find the cf_clearance cookie!")
18+
sb.driver.stop()

‎examples/cdp_mode/raw_consecutive_c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
with SB(uc=True, test=True) as sb:
55
url = "https://sms-man.com/login"
66
sb.activate_cdp_mode(url)
7-
sb.sleep(2)
7+
sb.sleep(2.2)
88
sb.uc_gui_click_captcha()
9-
sb.sleep(2)
9+
sb.sleep(2.2)
1010
sb.uc_gui_click_captcha()
1111
sb.sleep(2)

‎examples/cdp_mode/raw_gitlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
with SB(uc=True, test=True, locale="en") as sb:
44
url = "https://gitlab.com/users/sign_in"
55
sb.activate_cdp_mode(url)
6-
sb.sleep(1)
6+
sb.sleep(2.2)
77
sb.uc_gui_click_captcha()
88
sb.assert_text("Username", '[for="user_login"]', timeout=3)
99
sb.assert_element('label[for="user_login"]')

‎examples/cdp_mode/raw_glassdoor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
with SB(uc=True, test=True, ad_block=True) as sb:
44
url = "https://www.glassdoor.com/Reviews/index.htm"
55
sb.activate_cdp_mode(url)
6-
sb.sleep(2)
6+
sb.sleep(2.2)
77
sb.uc_gui_click_captcha()
88
sb.highlight('[data-test="global-nav-glassdoor-logo"]')
99
sb.highlight('[data-test="site-header-companies"]')

‎examples/cdp_mode/raw_indeed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
with SB(uc=True, test=True) as sb:
44
url = "https://www.indeed.com/companies/search"
55
sb.activate_cdp_mode(url)
6-
sb.sleep(2)
6+
sb.sleep(2.2)
77
sb.uc_gui_click_captcha()
88
sb.sleep(1)
99
company = "NASA Jet Propulsion Laboratory"

‎mkdocs_build/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pathspec==0.12.1
1414
Babel==2.17.0
1515
paginate==0.5.7
1616
mkdocs==1.6.1
17-
mkdocs-material==9.6.17
17+
mkdocs-material==9.6.18
1818
mkdocs-exclude-search==0.6.6
1919
mkdocs-simple-hooks==0.1.5
2020
mkdocs-material-extensions==1.3.1

‎requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fasteners>=0.20
1515
mycdp>=1.2.0
1616
pynose>=1.5.4
1717
platformdirs>=4.3.6;python_version<"3.9"
18-
platformdirs>=4.3.8;python_version>="3.9"
18+
platformdirs>=4.4.0;python_version>="3.9"
1919
typing-extensions>=4.13.2
2020
sbvirtualdisplay>=1.4.0
2121
MarkupSafe==2.1.5;python_version<"3.9"
@@ -35,7 +35,8 @@ chardet==5.2.0
3535
charset-normalizer>=3.4.3,<4
3636
urllib3>=1.26.20,<2;python_version<"3.10"
3737
urllib3>=1.26.20,<2.6.0;python_version>="3.10"
38-
requests==2.32.4
38+
requests==2.32.4;python_version<"3.9"
39+
requests>=2.32.5,<2.33;python_version>="3.9"
3940
sniffio==1.3.1
4041
h11==0.16.0
4142
outcome==1.3.0.post0
@@ -66,7 +67,7 @@ pytest-xdist==3.8.0;python_version>="3.9"
6667
parameterized==0.9.0
6768
behave==1.2.6
6869
soupsieve==2.7
69-
beautifulsoup4==4.13.4
70+
beautifulsoup4>=4.13.5,<4.14
7071
pyotp==2.9.0
7172
python-xlib==0.33;platform_system=="Linux"
7273
markdown-it-py==3.0.0;python_version<"3.10"
@@ -78,7 +79,7 @@ rich>=14.1.0,<15
7879
# ("pip install -r requirements.txt" also installs this, but "pip install -e ." won't.)
7980

8081
coverage>=7.6.1;python_version<"3.9"
81-
coverage>=7.10.4;python_version>="3.9"
82+
coverage>=7.10.5;python_version>="3.9"
8283
pytest-cov>=5.0.0;python_version<"3.9"
8384
pytest-cov>=6.2.1;python_version>="3.9"
8485
flake8==5.0.4;python_version<"3.9"

‎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.41.1"
2+
__version__ = "4.41.2"

0 commit comments

Comments
(0)

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