How is possible to enter a text into a textbox using CDP?

91 views
Skip to first unread message

ihor ilnytskyi

unread,
Mar 6, 2023, 6:27:47 AM3/6/23
to chrome-debugging-protocol
is the best way to execute a script, that finds and fills in the textbox, or there are some other possibilities ?

Ophir Back

unread,
Mar 13, 2023, 10:01:16 AM3/13/23
to ihor ilnytskyi, chrome-debugging-protocol
A textarea can potentially have event listeners that might interact with whatever you attempt to insert to it. Because of that, I suggested focusing it (by clicking on it for example) and then using the method `Input.insertText`

On Mon, Mar 6, 2023 at 1:27 PM ihor ilnytskyi <ii190...@gmail.com> wrote:
is the best way to execute a script, that finds and fills in the textbox, or there are some other possibilities ?

--
You received this message because you are subscribed to the Google Groups "chrome-debugging-protocol" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-debugging-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chrome-debugging-protocol/26b5767a-d42e-4229-ab01-c6bdefb29be7n%40googlegroups.com.

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.
Reply all
Reply to author
Forward
0 new messages