Skip to content

Commit e65b023

Browse files
committed
Add "caching" option to assert_pdf_text()
1 parent 49eda86 commit e65b023

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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:

0 commit comments

Comments
 (0)