(self)
| 4 | |
| 5 | class PDFTests(BaseCase): |
| 6 | def test_get_pdf_text(self): |
| 7 | self.goto("data:,") |
| 8 | if self.headless: |
| 9 | self.skip("Skip this test in headless mode!") |
| 10 | if not self.undetectable or not self.external_pdf: |
| 11 | self.activate_cdp_mode(external_pdf=True) |
| 12 | pdf = ( |
| 13 | "https://nostarch.com/download/" |
| 14 | "Automate_the_Boring_Stuff_sample_ch17.pdf" |
| 15 | ) |
| 16 | pdf_text = self.get_pdf_text(pdf, page=1, nav=True) |
| 17 | print("\n" + pdf_text) |
nothing calls this directly
no test coverage detected