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 4ba4d68

Browse files
authored
Merge pull request #3476 from seleniumbase/url-schemes-and-dependencies
URL schemes and dependencies
2 parents f6fdc54 + 03e6e01 commit 4ba4d68

File tree

6 files changed

+30
-5
lines changed

6 files changed

+30
-5
lines changed

‎examples/cdp_mode/raw_indeed.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from seleniumbase import SB
2+
3+
with SB(uc=True, test=True) as sb:
4+
url = "https://www.indeed.com/companies/search"
5+
sb.activate_cdp_mode(url)
6+
sb.sleep(2)
7+
sb.uc_gui_click_captcha()
8+
sb.sleep(1)
9+
company = "NASA Jet Propulsion Laboratory"
10+
sb.press_keys('input[data-testid="company-search-box"]', company)
11+
sb.click('button[type="submit"]')
12+
sb.click('a:contains("%s")' % company)
13+
sb.sleep(3)
14+
sb.cdp.highlight('div[itemprop="name"]')
15+
sb.sleep(1)
16+
sb.cdp.highlight('h2:contains("About the company")')
17+
sb.sleep(2)
18+
for i in range(10):
19+
sb.cdp.scroll_down(12)
20+
sb.sleep(0.14)
21+
info = sb.find_element('[data-testid="AboutSection-section"]')
22+
soup = sb.get_beautiful_soup(info.get_html()).get_text("\n").strip()
23+
print("*** %s: ***\n%s" % (company, soup.replace("\n:", ":")))

‎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.1
17+
mkdocs-material==9.6.2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pytest-xdist==3.6.1
5959
parameterized==0.9.0
6060
behave==1.2.6
6161
soupsieve==2.6
62-
beautifulsoup4==4.12.3
62+
beautifulsoup4==4.13.3
6363
pyotp==2.9.0
6464
python-xlib==0.33;platform_system=="Linux"
6565
markdown-it-py==3.0.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.34.6"
2+
__version__ = "4.34.7"

‎seleniumbase/fixtures/page_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def looks_like_a_page_url(url):
111111
self.get_element(URL_AS_A_SELECTOR) if the input is not a URL."""
112112
return url.startswith((
113113
"http:", "https:", "://", "about:", "blob:", "chrome:",
114-
"data:", "edge:", "file:", "view-source:"
114+
"data:", "edge:", "file:", "view-source:", "chrome-search:",
115+
"chrome-extension:", "chrome-untrusted:", "isolated-app:",
116+
"chrome-devtools:", "devtools:"
115117
))
116118

117119

‎setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
'parameterized==0.9.0',
209209
"behave==1.2.6",
210210
'soupsieve==2.6',
211-
"beautifulsoup4==4.12.3",
211+
"beautifulsoup4==4.13.3",
212212
'pyotp==2.9.0',
213213
'python-xlib==0.33;platform_system=="Linux"',
214214
'markdown-it-py==3.0.0',

0 commit comments

Comments
(0)

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