R
R
Roman Rakzin2017-09-22 00:42:28
Node.js
Roman Rakzin, 2017-09-22 00:42:28

How to create multiple web browser windows and access javascript objects from the main C# program?

How to create multiple web browser windows and access the javascript objects inside the windows?
The bottom line is that there is a service that performs certain calculations, but in order to use all the power, you need to keep 100-150 browser tabs open and simultaneously monitor them for certain changes in the browser. Accordingly, you need to open certain pages in a web browser, get root access to them, and when events occur there, notify the main program. And the browser window itself can be omitted to save resources. We are only interested in introducing hundreds of pages from a program in C # (better) or Nodejs into the code that is launched.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lam0x86, 2017-09-22
@lam0x86

The easiest way is to use an adapter for Chromium like CefSharp .
It can work without creating windows on the screen.
And here is an example of how to execute your javascript method inside the loaded page and return the result back to C#.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question