Is it possible to ExecuteJavaScript or emulate user actions like key pressing on loaded page? #232

Open
opened 2026-01-29 16:34:22 +00:00 by claunia · 0 comments
Owner

Originally created by @ziomyslaw on GitHub (Nov 14, 2018).

I am looking for solution to replace NightmareJs with c# implementation.
The NightmareJs wraps electron api to allows not only to type or click but execute js as well i.e.
win.webContents.executeJavaScript(src)
WebContents does not provide such methods.
Is there any equivalent way to do this?

Originally created by @ziomyslaw on GitHub (Nov 14, 2018). I am looking for solution to replace NightmareJs with c# implementation. The NightmareJs wraps electron api to allows not only to type or click but execute js as well i.e. [win.webContents.executeJavaScript(src)](https://github.com/segmentio/nightmare/blob/25467e5a1071c05dcbce7f58e137f89c4b8fdd93/lib/runner.js#L395) `WebContents` does not provide such methods. Is there any equivalent way to do this?
claunia added the help wanted label 2026-01-29 16:34:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#232