Open msl-kabo opened 7 years ago
I meant visibility: hidden
, not display: hidden
<div style="font-size: 0px; margin: 0px; padding: 0px;">PdfOkToGo</div>
seems to work though.
Hi,
waitForText
uses browsers find in page functionality, so unfortunately it currently only detects visible text (opacity: 0
works too).
document.body.innerText
behaves the same, so using that is off the table.
Would have to rewrite it going through innerHTML
.
I've got a page with an animation on it, and want to generate a PDF of the page after the animation has finished. I can't use
waitForText
with a text that's on the page because that generates a PDF from before the animation. So I tried setting a timeout for when the animation should be done that renders a text with styledisplay: none
. That text doesn't seem to get picked up though. I trieddisplay: hidden
but that text got visibly rendered unfortunately.Could we please have
waitForText
detect text withdisplay: none
(or some other solution that achieves the goal of triggering the pdf render without being visible on the pdf)?