Skip to content

Commit 68c456e

Browse files
authored
Merge pull request #1218 from seleniumbase/update-method-args-and-dependencies
Update method args and dependencies
2 parents 49eda86 + c9e0d49 commit 68c456e

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

examples/wordle_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def skip_if_incorrect_env(self):
5252
print(message)
5353
self.skip(message)
5454
version = [int(i) for i in __version__.split(".") if i.isdigit()]
55-
if version < [2, 4, 3]:
56-
message = "This test requires SeleniumBase 2.4.3 or newer!"
55+
if version < [2, 4, 4]:
56+
message = "This test requires SeleniumBase 2.4.4 or newer!"
5757
print(message)
5858
self.skip(message)
5959

@@ -74,7 +74,7 @@ def test_wordle(self):
7474
letters.append(letter)
7575
button = 'button[data-key="%s"]' % letter
7676
self.click(keyboard_base + button)
77-
button = 'button[data-key="↵"]'
77+
button = 'button.one-and-a-half'
7878
self.click(keyboard_base + button)
7979
row = 'game-app::shadow game-row[letters="%s"]::shadow ' % word
8080
tile = row + "game-tile:nth-of-type(%s)"

help_docs/method_summary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ self.get_beautiful_soup(source=None)
361361

362362
self.get_unique_links()
363363

364-
self.get_link_status_code(link, allow_redirects=False, timeout=5)
364+
self.get_link_status_code(link, allow_redirects=False, timeout=5, verify=False)
365365

366366
self.assert_link_status_code_is_not_404(link)
367367

@@ -372,11 +372,11 @@ self.print_unique_links_with_status_codes()
372372

373373
self.get_pdf_text(
374374
pdf, page=None, maxpages=None, password=None,
375-
codec='utf-8', wrap=False, nav=False, override=False)
375+
codec='utf-8', wrap=False, nav=False, override=False, caching=True)
376376

377377
self.assert_pdf_text(
378378
pdf, text, page=None, maxpages=None, password=None,
379-
codec='utf-8', wrap=True, nav=False, override=False)
379+
codec='utf-8', wrap=True, nav=False, override=False, caching=True)
380380

381381
self.create_folder(folder)
382382

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ idna==2.10;python_version<"3.6"
2828
idna==3.3;python_version>="3.6"
2929
chardet==3.0.4;python_version<"3.5"
3030
chardet==4.0.0;python_version>="3.5"
31-
charset-normalizer==2.0.11;python_version>="3.5"
31+
charset-normalizer==2.0.12;python_version>="3.5"
3232
urllib3==1.26.8
3333
requests==2.27.1;python_version<"3.5"
3434
requests==2.25.1;python_version>="3.5" and python_version<"3.6"

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__ = "2.4.12"
2+
__version__ = "2.4.13"

seleniumbase/fixtures/base_case.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4784,6 +4784,7 @@ def assert_pdf_text(
47844784
wrap=True,
47854785
nav=False,
47864786
override=False,
4787+
caching=True,
47874788
):
47884789
"""Asserts text in a PDF file.
47894790
PDF can be either a URL or a file path on the local file system.
@@ -4806,7 +4807,8 @@ def assert_pdf_text(
48064807
(Not needed because the PDF will be downloaded anyway.)
48074808
override - If the PDF file to be downloaded already exists in the
48084809
downloaded_files/ folder, that PDF will be used
4809-
instead of downloading it again."""
4810+
instead of downloading it again.
4811+
caching - If resources should be cached via pdfminer."""
48104812
text = self.__fix_unicode_conversion(text)
48114813
if not codec:
48124814
codec = "utf-8"
@@ -4819,6 +4821,7 @@ def assert_pdf_text(
48194821
wrap=wrap,
48204822
nav=nav,
48214823
override=override,
4824+
caching=caching,
48224825
)
48234826
if type(page) is int:
48244827
if text not in pdf_text:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
'idna==3.3;python_version>="3.6"', # Must stay in sync with "requests"
154154
'chardet==3.0.4;python_version<"3.5"', # Stay in sync with "requests"
155155
'chardet==4.0.0;python_version>="3.5"', # Stay in sync with "requests"
156-
'charset-normalizer==2.0.11;python_version>="3.5"', # Sync "requests"
156+
'charset-normalizer==2.0.12;python_version>="3.5"', # Sync "requests"
157157
"urllib3==1.26.8", # Must stay in sync with "requests"
158158
'requests==2.27.1;python_version<"3.5"',
159159
'requests==2.25.1;python_version>="3.5" and python_version<"3.6"',

0 commit comments

Comments
 (0)