Skip to content

Paraphrasing returns null with DOMException on placeholder selector (Windows) #20

@paiker-hussain-arhamsoft

Description

Calling the library to paraphrase text returns null. The run consistently throws a DOMException related to a placeholder-based selector. This happens with the repo’s example.js as well as a minimal invocation.

Environment

  • OS: Windows 10/11 x64

  • Node: v18.x (paste exact: node -v)

  • npm: (paste exact: npm -v)

  • Chrome: Stable (paste exact version)

  • Repo commit: (paste git rev-parse HEAD)

  • Puppeteer version: (from package-lock.json or npx puppeteer --version)

Actual Result

  • Process completes without a paraphrased output; printed result is null.
  • Console shows the following error (repeats across runs):
Error: DOMException: Failed to execute 'querySelectorAll' on 'Document': 'div[placeholder="To rewrite text, enter or paste it here and press "Paraphrase.""]' is not a valid selector.
re (pptr:internal:3:12669)
Ie (pptr:internal:3:12943)
pptr:evaluateHandle;CDPElementHandle.evaluateHandle%20(C%3A%5CUsers%5CArhamsoft%5Cquillbot-api%5Cnode_modules%5Cpuppeteer-core%5Clib%5Ccjs%5Cpuppeteer%5Capi%5CElementHandle.js%3A104%3A28):2:12

Before:
TCP is a connection-oriented protocol, which means that the end-to-end communications is set up using handshaking. Once the connection is set up, user data may be sent bi-directionally over the connection. Compared to TCP, UDP is a simpler message based connectionless protocol, which means that the end-to-end connection is not dedicated and information is transmitted in one direction from the source to its destination without verifying the readiness or state of the receiver. TCP controls message acknowledgment, retransmission and timeout. TCP makes multiple attempts to deliver messages that get lost along the way, In TCP therefore, there is no missing data, and if ever there are multiple timeouts, the connection is dropped. When a UDP message is sent there is no guarantee that the message it will reach its destination; it could get lost along the way.
Paraphrased:
null

(Occasionally, separate timeouts also occur when selecting mode/language, e.g. waiting for #demo-simple-select.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions