MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / test_get_pdf_text

Method test_get_pdf_text

examples/test_get_pdf_text.py:6–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class 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)

Callers

nothing calls this directly

Calls 4

skipMethod · 0.80
get_pdf_textMethod · 0.80
gotoMethod · 0.45
activate_cdp_modeMethod · 0.45

Tested by

no test coverage detected