We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb070be commit c18519bCopy full SHA for c18519b
examples/test_pdf_asserts.py
@@ -0,0 +1,16 @@
1
+from seleniumbase import BaseCase
2
+
3
4
+class PdfTestClass(BaseCase):
5
6
+ def test_assert_pdf_text(self):
7
8
+ # Assert PDF contains the expected text on Page 1
9
+ self.assert_pdf_text(
10
+ "https://nostarch.com/download/Automate_the_Boring_Stuff_dTOC.pdf",
11
+ "Programming Is a Creative Activity", page=1)
12
13
+ # Assert PDF contains the expected text on any of the pages
14
15
16
+ "Extracting Text from PDFs")
0 commit comments